diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-10 07:24:38 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-05-10 07:24:38 +0200 |
| commit | 4aa911f0dcc0f3e4c159d92598d42bb16e29e02e (patch) | |
| tree | 5341ff0852e9a5718a22b3984d2e27573774d6b9 /src/shell.c | |
| parent | 8cf0d9d94b91d036d44fa02ebe5f6acea594a6d8 (diff) | |
| download | nissy-classic-4aa911f0dcc0f3e4c159d92598d42bb16e29e02e.tar.gz nissy-classic-4aa911f0dcc0f3e4c159d92598d42bb16e29e02e.zip | |
Fix possible free of uninitialized pointer
Diffstat (limited to 'src/shell.c')
| -rw-r--r-- | src/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 64 | 64 | ||
| 65 | if (cmd == NULL) { | 65 | if (cmd == NULL) { |
| 66 | fprintf(stderr, "%s: command not found\n", v[0]); | 66 | fprintf(stderr, "%s: command not found\n", v[0]); |
| 67 | goto exec_args_end; | 67 | return; |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | args = cmd->parse_args(c-1, &v[1]); | 70 | args = cmd->parse_args(c-1, &v[1]); |
