]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libreplace: Compare a pointer against NULL, not 0
authorVolker Lendecke <vl@samba.org>
Thu, 22 Oct 2020 09:32:29 +0000 (11:32 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 4 Nov 2020 18:55:39 +0000 (18:55 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/replace/closefrom.c

index a61a80f1b0ff10995d0f65d81181dd1b5da1afc3..bef53e42734ec0f82200005aa2b3350be8491bf2 100644 (file)
@@ -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;
        }