From 3d9fd25269ccfc1dacf9c5cd23a3d232e0085150 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Mon, 22 Apr 2019 07:20:46 +0300 Subject: [PATCH] Fixup invalid daemon foreground mode check (2cc996cb77) --- daemon/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/daemon.c b/daemon/daemon.c index 3237eea6a..8790b19b2 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -815,7 +815,7 @@ static bool init_daemon_data(int argc, char* argv[], struct daemon_data* data, b goto exit_early; } - if (foreground && logfile == TR_BAD_SYS_FILE) + if (*foreground && logfile == TR_BAD_SYS_FILE) { logfile = tr_sys_file_get_std(TR_STD_SYS_FILE_ERR, NULL); }