summaryrefslogtreecommitdiff
path: root/fastjar/jartool.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-31 00:52:16 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-31 00:52:16 +0000
commit1c9e59f7dbfceb80cbe09f8c882105b35c529955 (patch)
treefff639128357f4339d816d9d2506e1763fef054d /fastjar/jartool.c
parent7ced3608f16239aadc99ce8db7742316359a2672 (diff)
downloadgcc-1c9e59f7dbfceb80cbe09f8c882105b35c529955.tar.gz
* jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
to init_args. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49351 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fastjar/jartool.c')
-rw-r--r--fastjar/jartool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fastjar/jartool.c b/fastjar/jartool.c
index dd71592e8b9..afd08a758f2 100644
--- a/fastjar/jartool.c
+++ b/fastjar/jartool.c
@@ -404,6 +404,7 @@ int main(int argc, char **argv){
all following options are handled as file names. */
while (optind < argc)
new_argv[new_argc++] = argv[optind++];
+ new_argv[new_argc] = NULL;
if(action == ACTION_NONE){
fprintf(stderr, "One of options -{ctxu} must be specified.\n");
@@ -495,7 +496,7 @@ int main(int argc, char **argv){
else if(manifest)
make_manifest(jarfd, NULL);
- init_args (new_argv, new_argc);
+ init_args (new_argv, 0);
/* now we add the files to the archive */
while ((arg = get_next_arg ())){