diff options
-rw-r--r-- | src/bin/efreet/efreetd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/efreet/efreetd.c b/src/bin/efreet/efreetd.c index 839cd607b2..8ed670d75f 100644 --- a/src/bin/efreet/efreetd.c +++ b/src/bin/efreet/efreetd.c @@ -72,6 +72,10 @@ main(int argc, char *argv[]) else { fd = open("/dev/null", O_WRONLY); + if (fd < 0) + { + goto tmp_error; + } } log = fdopen(fd, "wb"); if (!log) goto tmp_error; |