Minor optimization
This commit is contained in:
parent
bb764828c3
commit
e66d412682
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user