mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
(getargs) [MSDOS]: Don't assume optarg != NULL
with -g option.
This commit is contained in:
@@ -355,7 +355,8 @@ getargs (int argc, char *argv[])
|
||||
case 'g':
|
||||
/* Here, the -g and --graph=FILE options are differentiated. */
|
||||
graph_flag = 1;
|
||||
spec_graph_file = AS_FILE_NAME (optarg);
|
||||
if (optarg)
|
||||
spec_graph_file = AS_FILE_NAME (optarg);
|
||||
break;
|
||||
|
||||
case 'v':
|
||||
|
||||
Reference in New Issue
Block a user