Code cleanup

This commit is contained in:
Pierre Pronchery 2010-12-31 11:44:09 +00:00
parent 0efe04cd80
commit 258e163ffe

View File

@ -2020,7 +2020,7 @@ static int _config_load_string(Config * config, char const * variable,
if((str = config_get(config, "", variable)) == NULL)
return 0;
if((p = strdup(str)) == NULL)
return 1;
return -1;
free(*value);
*value = p;
return 0;