Remove excessive copying
This commit is contained in:
parent
d7fada25e5
commit
45a56e468d
@ -384,8 +384,9 @@ static int set_string_arg (char **var, const char *line, regmatch_t * match)
|
|||||||
|
|
||||||
if (!arg)
|
if (!arg)
|
||||||
return -1;
|
return -1;
|
||||||
*var = safestrdup (arg);
|
|
||||||
safefree (arg);
|
*var = arg;
|
||||||
|
|
||||||
return *var ? 0 : -1;
|
return *var ? 0 : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user