aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index e654d1941..46f35c224 100644
--- a/src/log.c
+++ b/src/log.c
@@ -51,7 +51,7 @@ static void redirect_stdin(void)
struct stat ss;
if ((st = fstat(STDIN_FILENO, &ss)) < 0) {
- if ((fd = open("/dev/null", O_RDONLY) > 0))
+ if ((fd = open("/dev/null", O_RDONLY) > 0)) {
DEBUG("stdin closed, and could not open /dev/null "
"as fd=0, some external library bugs "
"may be exposed...\n");