conf: allow set_string_arg to overwrite previous values (i.e. don't leak)

Michael
This commit is contained in:
Michael Adam 2009-12-06 01:31:14 +01:00
parent 5e399a7e17
commit f60aa47715

View File

@ -385,6 +385,10 @@ static int set_string_arg (char **var, const char *line, regmatch_t * match)
if (!arg) if (!arg)
return -1; return -1;
if (*var != NULL) {
safefree (*var);
}
*var = arg; *var = arg;
return 0; return 0;