From 4aa911f0dcc0f3e4c159d92598d42bb16e29e02e Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 10 May 2023 07:24:38 +0200 Subject: Fix possible free of uninitialized pointer --- src/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/shell.c b/src/shell.c index 3c19a31..654d1c8 100644 --- a/src/shell.c +++ b/src/shell.c @@ -64,7 +64,7 @@ exec_args(int c, char **v) if (cmd == NULL) { fprintf(stderr, "%s: command not found\n", v[0]); - goto exec_args_end; + return; } args = cmd->parse_args(c-1, &v[1]); -- cgit v1.3