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