(getargs) [MSDOS]: Don't assume optarg != NULL

with -g option.
This commit is contained in:
Paul Eggert
2002-12-26 06:55:45 +00:00
parent 9dd5b37815
commit fcbfa6b01c

View File

@@ -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':