]> git.ipfire.org Git - thirdparty/git.git/blobdiff - daemon.c
Merge branch 'ab/env-array'
[thirdparty/git.git] / daemon.c
index a1d211debe1122b04d1c94845ab6d7c8e351ad9a..58f1077885c574da5e51898f859ad5ae4cee0049 100644 (file)
--- a/daemon.c
+++ b/daemon.c
@@ -447,7 +447,7 @@ static void copy_to_log(int fd)
        FILE *fp;
 
        fp = fdopen(fd, "r");
-       if (fp == NULL) {
+       if (!fp) {
                logerror("fdopen of error channel failed");
                close(fd);
                return;