aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/main.c b/shell/main.c
index 0ecdff13b5..9667b862f8 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -541,7 +541,7 @@ main (int argc, char **argv)
int fd;
fd = g_open (evolution_debug_log, O_WRONLY | O_CREAT | O_TRUNC, 0600);
- if (fd) {
+ if (fd != -1) {
dup2 (fd, STDOUT_FILENO);
dup2 (fd, STDERR_FILENO);
close (fd);