From 45831a8be41f185d03525c59b3ae2356d9b41324 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 11 Mar 2025 22:03:36 +0000 Subject: [PATCH] api: Avoid unnecessarily shadowing variable --- src/datum_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datum_api.c b/src/datum_api.c index 3bd1478..173fbea 100644 --- a/src/datum_api.c +++ b/src/datum_api.c @@ -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]); // 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"); } }