forked from Ocean/datum_gateway
api: Avoid unnecessarily shadowing variable
This commit is contained in:
parent
405df7251d
commit
45831a8be4
@ -1176,7 +1176,7 @@ bool datum_api_config_set(const char * const key, const char * const val, struct
|
|||||||
strcpy(datum_config.datum_pool_host, cfginfo->default_string[0]);
|
strcpy(datum_config.datum_pool_host, cfginfo->default_string[0]);
|
||||||
|
|
||||||
// Avoiding using null here because older versions handled it poorly
|
// Avoiding using null here because older versions handled it poorly
|
||||||
json_t *j = json_object_get(config, "datum");
|
j = json_object_get(config, "datum");
|
||||||
if (j) json_object_del(j, "pool_host");
|
if (j) json_object_del(j, "pool_host");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user