diff options
-rw-r--r-- | debianutils/run_parts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c index 34e702ef8..a6ad81096 100644 --- a/debianutils/run_parts.c +++ b/debianutils/run_parts.c | |||
@@ -88,7 +88,6 @@ int run_parts_main(int argc, char **argv) | |||
88 | * Called once for every argument. */ | 88 | * Called once for every argument. */ |
89 | args = xrealloc(args, (argcount + 2) * (sizeof(char *))); | 89 | args = xrealloc(args, (argcount + 2) * (sizeof(char *))); |
90 | args[argcount++] = optarg; | 90 | args[argcount++] = optarg; |
91 | args[argcount] = 0; | ||
92 | break; | 91 | break; |
93 | default: | 92 | default: |
94 | show_usage(); | 93 | show_usage(); |
@@ -101,5 +100,7 @@ int run_parts_main(int argc, char **argv) | |||
101 | } | 100 | } |
102 | 101 | ||
103 | args[0] = argv[optind]; | 102 | args[0] = argv[optind]; |
103 | args[argcount] = 0; | ||
104 | |||
104 | return(run_parts(args, test_mode)); | 105 | return(run_parts(args, test_mode)); |
105 | } | 106 | } |