diff options
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 90129744f..5d52a7fae 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3602,7 +3602,7 @@ mch_call_shell(cmd, options) *p++ = NUL; p = skipwhite(p); } - if (i == 0) + if (argv == NULL) { argv = (char **)alloc((unsigned)((argc + 4) * sizeof(char *))); if (argv == NULL) /* out of memory */ |