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