This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: FYI: fastjar fix
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 30 Jan 2002 18:11:20 -0700
- Subject: Patch: FYI: fastjar fix
- Reply-to: tromey at redhat dot com
I'm checking this in.
This fixes a fastjar bug I noticed while building rhug.
I inadvertently introduced this bug when doing some other fastjar work.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* jartool.c (main): NULL-terminate new_argv. Pass 0 as argument
to init_args.
Index: jartool.c
===================================================================
RCS file: /cvs/gcc/gcc/fastjar/jartool.c,v
retrieving revision 1.11
diff -u -r1.11 jartool.c
--- jartool.c 2002/01/09 23:22:20 1.11
+++ jartool.c 2002/01/31 00:51:41
@@ -404,6 +404,7 @@
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 @@
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 ())){