diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-09 13:16:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-09 13:16:13 +0100 |
commit | f46bf5204c3c55d23921b501db21a906d526eb45 (patch) | |
tree | a7ed0501c46123a0af70b780940b8c4ac0a50f2e /src/job.c | |
parent | 7bb4e74c38642682cfdd0cb4052adfa5efdd7dd1 (diff) | |
download | vim-git-f46bf5204c3c55d23921b501db21a906d526eb45.tar.gz |
patch 8.2.2118: dead code in the job supportv8.2.2118
Problem: Dead code in the job support. (Dominique Pellé)
Solution: Define USE_ARGV before checking for it.
Diffstat (limited to 'src/job.c')
-rw-r--r-- | src/job.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -887,6 +887,11 @@ job_any_running() } #endif +// Unix uses argv[] for the command, other systems use a string. +#if defined(UNIX) +# define USE_ARGV +#endif + #if !defined(USE_ARGV) || defined(PROTO) /* * Escape one argument for an external command. @@ -1269,9 +1274,7 @@ job_start( char **argv = NULL; int argc = 0; int i; -#if defined(UNIX) -# define USE_ARGV -#else +#ifndef USE_ARGV garray_T ga; #endif jobopt_T opt; |