X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f47dbf6befd8c97f385bb1c7a3902e9563018b7c..983c5c2c2a4cc5b1dbd63236ad1215d2a113391e:/src/getargs.c diff --git a/src/getargs.c b/src/getargs.c index 23b06394..ffdff8ab 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -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':