From: Volker Lendecke Date: Thu, 22 Oct 2020 09:32:29 +0000 (+0200) Subject: libreplace: Compare a pointer against NULL, not 0 X-Git-Tag: talloc-2.3.2~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af49efcde2e69958e94e8e1d82183d5c4ea0cf5d;p=thirdparty%2Fsamba.git libreplace: Compare a pointer against NULL, not 0 Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/lib/replace/closefrom.c b/lib/replace/closefrom.c index a61a80f1b0f..bef53e42734 100644 --- a/lib/replace/closefrom.c +++ b/lib/replace/closefrom.c @@ -54,7 +54,7 @@ static int closefrom_procfs(int lower) int ret = ENOMEM; dirp = opendir("/proc/self/fd"); - if (dirp == 0) { + if (dirp == NULL) { return errno; }