]> git.saurik.com Git - bison.git/commitdiff
(getargs) [MSDOS]: Don't assume optarg != NULL
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Dec 2002 06:55:45 +0000 (06:55 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Dec 2002 06:55:45 +0000 (06:55 +0000)
with -g option.

src/getargs.c

index 23b06394b47c08cd0d1c9477efb1fd28a003bfe9..ffdff8abaf81602d00b0fa7f69ffd44b7542dba3 100644 (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':