projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e287a52
)
(translate_options): Don't assume option_map[j].arg_info != 0.
author
Richard Stallman
<rms@gnu.org>
Mon, 7 Jun 1993 03:41:21 +0000
(
03:41
+0000)
committer
Richard Stallman
<rms@gnu.org>
Mon, 7 Jun 1993 03:41:21 +0000
(
03:41
+0000)
From-SVN: r4644
gcc/gcc.c
patch
|
blob
|
history
diff --git
a/gcc/gcc.c
b/gcc/gcc.c
index 502f13e4086c20dfefa302ef5d2de0fe77449e89..963eb3777b56a03569837f7adacdbf3589f27070 100644
(file)
--- a/
gcc/gcc.c
+++ b/
gcc/gcc.c
@@
-752,7
+752,8
@@
translate_options (argcp, argvp)
else
continue;
}
- else if (index (option_map[j].arg_info, '*') != 0)
+ else if (option_map[j].arg_info != 0
+ && index (option_map[j].arg_info, '*') != 0)
error ("Incomplete `%s' option", option_map[j].name);
/* Handle arguments. */