X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/5263bea9f7d576c20938619af2197eb5b47a90c3..6c88b51e8395fe490c15ede2f1b2562258a4260d:/src/getargs.c diff --git a/src/getargs.c b/src/getargs.c index 53934f33..2a0611bc 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -499,7 +499,7 @@ static struct option const long_options[] = /* Build a location for the current command line argument. */ static location -command_line_location() +command_line_location (void) { location res; /* "" is used in GCC's messages about -D. */ @@ -531,9 +531,8 @@ getargs (int argc, char *argv[]) char* value = strchr (optarg, '='); if (value) *value++ = 0; - else - value = ""; - muscle_percent_define_insert (name, command_line_location (), value); + muscle_percent_define_insert (name, command_line_location (), + value ? value : ""); } break;