Minor optimization

This commit is contained in:
Pierre Pronchery 2015-10-08 18:57:39 +02:00
parent bb764828c3
commit e66d412682

View File

@ -107,7 +107,7 @@ int config_set(Config * config, char const * section, char const * variable,
{
Mutator * mutator;
char * p;
char * oldvalue = NULL;
char * oldvalue;
char * newvalue = NULL;
#ifdef DEBUG
@ -131,6 +131,7 @@ int config_set(Config * config, char const * section, char const * variable,
mutator_delete(mutator);
return 1;
}
oldvalue = NULL;
}
else
/* to free the current value if already set */