From 9718be09c16ea4b4fb3cd5cb2b53c33055a4361f Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 16 Feb 2022 02:28:11 +0000 Subject: [PATCH] reload_logging: fix returning possibly uninitialized value introduced in 17d3733be36b0daabda1bdb19a3c4452a360d8f9 may fix #422 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index e8c9c07..7ea5540 100644 --- a/src/main.c +++ b/src/main.c @@ -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!");