Skip to content

Commit 9718be0

Browse files
committed
reload_logging: fix returning possibly uninitialized value
introduced in 17d3733 may fix tinyproxy#422
1 parent 479df8e commit 9718be0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ int reload_config (int reload_logging)
268268
config = c_next;
269269
}
270270

271-
if (reload_logging) ret2 = setup_logging ();
271+
ret2 = reload_logging ? setup_logging () : 0;
272272

273273
if (ret != 0)
274274
log_message (LOG_WARNING, "Reloading config file failed!");

0 commit comments

Comments
 (0)