fix bug about 'config reload user' when remote db is not exist

This commit is contained in:
tsthght 2018-10-25 16:04:18 +08:00
parent 8b90ecd786
commit 19e66b929a

View File

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