]> git.saurik.com Git - bison.git/commitdiff
Simplify last patch slightly.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 17 Nov 2008 15:51:17 +0000 (10:51 -0500)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 17 Nov 2008 15:51:17 +0000 (10:51 -0500)
* src/getargs.c (getargs): Here.

ChangeLog
src/getargs.c

index 6796f5c029afd0f9124448ba2d0bc3d8a04694c0..4ba28363e30bffcf3a9cc90be407dd424c6d8d55 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-17  Joel E. Denny  <jdenny@ces.clemson.edu>
+
+       Simplify last patch slightly.
+       * src/getargs.c (getargs): Here.
+
 2008-11-17  Joel E. Denny  <jdenny@ces.clemson.edu>
 
        Fix last warning from --enable-gcc-warnings.
index bc1cc64b3cc7cbf6464887b4da7880096e9d0625..2a0611bc315ac9a245c539b0556e78c6637d33ea 100644 (file)
@@ -529,14 +529,10 @@ getargs (int argc, char *argv[])
         {
           char* name = optarg;
           char* value = strchr (optarg, '=');
-          char const * muscle_value = "";
           if (value)
-            {
-              *value++ = 0;
-              muscle_value = value;
-            }
+            *value++ = 0;
           muscle_percent_define_insert (name, command_line_location (),
-                                        muscle_value);
+                                        value ? value : "");
         }
        break;