strdup -> xstrdup
sed: de-obfuscate piece of code
This commit is contained in:
@@ -56,7 +56,7 @@ static int read_str(const char *line, void *arg)
|
||||
char **dest = arg;
|
||||
|
||||
free(*dest);
|
||||
*dest = strdup(line);
|
||||
*dest = xstrdup(line);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user