From 19e66b929a86e6f335c0635537658bb2e8395f9d Mon Sep 17 00:00:00 2001 From: tsthght Date: Thu, 25 Oct 2018 16:04:18 +0800 Subject: [PATCH] fix bug about 'config reload user' when remote db is not exist --- src/chassis-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chassis-config.c b/src/chassis-config.c index ce8d390..54e695e 100644 --- a/src/chassis-config.c +++ b/src/chassis-config.c @@ -668,7 +668,7 @@ chassis_config_update_object_cache(chassis_config_t *conf, const char *name) return; time_t now = time(0); chassis_config_object_set_cache(object, NULL, now); - char *str; + char *str = NULL; chassis_config_query_object(conf, name, &str); if (str) { /* we just want to trigger query&caching, result is not needed */ g_free(str);