Skip to content

Commit 70a66a5

Browse files
committed
lib: avoid mlog_init outputting nullptr filename
References: GXF-2296
1 parent dac65aa commit 70a66a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rfbl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,8 @@ void mlog_init(const char *ident, const char *filename, unsigned int max_level,
11431143
for_tty = true;
11441144
else if (getppid() == 1 && getenv("JOURNAL_STREAM") != nullptr)
11451145
for_syslog = true;
1146+
else
1147+
for_tty = true;
11461148
} else if (strcmp(filename, "syslog") == 0) {
11471149
for_syslog = true;
11481150
}

0 commit comments

Comments
 (0)