Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)
from before "if(x) free(x)".
This commit is contained in:
@ -62,7 +62,7 @@ static int read_str(const char *line, void *arg)
|
||||
{
|
||||
char **dest = arg;
|
||||
|
||||
if (*dest) free(*dest);
|
||||
free(*dest);
|
||||
*dest = strdup(line);
|
||||
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user