Simplify last patch slightly.

* src/getargs.c (getargs): Here.
(cherry picked from commit 9ce405ce1d)
This commit is contained in:
Joel E. Denny
2008-11-17 10:51:17 -05:00
parent 10fa0146e2
commit c4eb1e841e
2 changed files with 7 additions and 6 deletions

View File

@@ -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> 2008-11-17 Joel E. Denny <jdenny@ces.clemson.edu>
Fix last warning from --enable-gcc-warnings. Fix last warning from --enable-gcc-warnings.

View File

@@ -527,14 +527,10 @@ getargs (int argc, char *argv[])
{ {
char* name = optarg; char* name = optarg;
char* value = strchr (optarg, '='); char* value = strchr (optarg, '=');
char const * muscle_value = "";
if (value) if (value)
{ *value++ = 0;
*value++ = 0;
muscle_value = value;
}
muscle_percent_define_insert (name, command_line_location (), muscle_percent_define_insert (name, command_line_location (),
muscle_value); value ? value : "");
} }
break; break;