mirror of
https://github.com/mirror/make.git
synced 2025-03-27 12:31:23 +08:00
* src/main.c (decode_switches): Fix memory leak.
This commit is contained in:
parent
0d367bbe6e
commit
55f06bdc3f
@ -2973,7 +2973,7 @@ decode_switches (int argc, const char **argv, int env)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
if (! coptarg)
|
if (! coptarg)
|
||||||
coptarg = xstrdup (cs->noarg_value);
|
coptarg = cs->noarg_value;
|
||||||
else if (*coptarg == '\0')
|
else if (*coptarg == '\0')
|
||||||
{
|
{
|
||||||
char opt[2] = "c";
|
char opt[2] = "c";
|
||||||
|
Loading…
Reference in New Issue
Block a user