mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 08:13:02 +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':
|
case 'g':
|
||||||
/* Here, the -g and --graph=FILE options are differentiated. */
|
/* Here, the -g and --graph=FILE options are differentiated. */
|
||||||
graph_flag = 1;
|
graph_flag = 1;
|
||||||
spec_graph_file = AS_FILE_NAME (optarg);
|
if (optarg)
|
||||||
|
spec_graph_file = AS_FILE_NAME (optarg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'v':
|
case 'v':
|
||||||
|
|||||||
Reference in New Issue
Block a user