diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-02 19:06:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-02 19:06:04 +0200 |
commit | 2b0a58d164b0642be3eeb476fecd28114445cdd5 (patch) | |
tree | 2759549fcdd5d3ce4c9776f67937b4b75c07070f /daemon.c | |
parent | Git 2.35.3 (diff) | |
parent | tree-wide: apply equals-null.cocci (diff) | |
download | git-2b0a58d164b0642be3eeb476fecd28114445cdd5.tar.xz git-2b0a58d164b0642be3eeb476fecd28114445cdd5.zip |
Merge branch 'ep/maint-equals-null-cocci' for maint-2.35
* ep/maint-equals-null-cocci:
tree-wide: apply equals-null.cocci
contrib/coccinnelle: add equals-null.cocci
Diffstat (limited to 'daemon.c')
-rw-r--r-- | daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |