From e1027c772e23988b31f4e3cb6c0346c2cd5f2511 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 7 Jun 1993 03:41:21 +0000 Subject: [PATCH] (translate_options): Don't assume option_map[j].arg_info != 0. From-SVN: r4644 --- gcc/gcc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/gcc.c b/gcc/gcc.c index 502f13e4086..963eb3777b5 100644 --- 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. */ -- 2.30.2