From: Joel E. Denny Date: Mon, 17 Nov 2008 15:51:17 +0000 (-0500) Subject: Simplify last patch slightly. X-Git-Tag: v2.7.90~1011 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/9ce405ce1dd2ff7d495dafe6201b87669549f98b Simplify last patch slightly. * src/getargs.c (getargs): Here. --- diff --git a/ChangeLog b/ChangeLog index 6796f5c0..4ba28363 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-17 Joel E. Denny + + Simplify last patch slightly. + * src/getargs.c (getargs): Here. + 2008-11-17 Joel E. Denny Fix last warning from --enable-gcc-warnings. diff --git a/src/getargs.c b/src/getargs.c index bc1cc64b..2a0611bc 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -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;