(translate_options): Don't assume option_map[j].arg_info != 0.

From-SVN: r4644
This commit is contained in:
Richard Stallman 1993-06-07 03:41:21 +00:00
parent e287a52ca0
commit e1027c772e
1 changed files with 2 additions and 1 deletions

View File

@ -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. */