api: Avoid unnecessarily shadowing variable

This commit is contained in:
Luke Dashjr 2025-03-11 22:03:36 +00:00
parent 405df7251d
commit 45831a8be4
No known key found for this signature in database
GPG Key ID: A291A2C45D0C504A

View File

@ -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");
} }
} }