reload_logging: fix returning possibly uninitialized value

introduced in 17d3733be3

may fix #422
This commit is contained in:
rofl0r 2022-02-16 02:28:11 +00:00
parent 479df8ecec
commit 9718be09c1

View File

@ -268,7 +268,7 @@ int reload_config (int reload_logging)
config = c_next;
}
if (reload_logging) ret2 = setup_logging ();
ret2 = reload_logging ? setup_logging () : 0;
if (ret != 0)
log_message (LOG_WARNING, "Reloading config file failed!");