Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'agent/tcf/main/main.c')
-rw-r--r--agent/tcf/main/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/main/main.c b/agent/tcf/main/main.c
index b2c83f83..9f88c97a 100644
--- a/agent/tcf/main/main.c
+++ b/agent/tcf/main/main.c
@@ -274,7 +274,7 @@ int main(int argc, char ** argv) {
}
}
- if (daemon && strcmp (log_name, LOG_NAME_STDERR) != 0 && log_name != NULL) {
+ if (daemon && log_name != NULL && strcmp (log_name, LOG_NAME_STDERR) != 0) {
fprintf(stderr, "%s: error: can only log to stderr when in daemon "
"mode.\n", progname);
exit (1);

Back to the top