smbd: Use NULL instead of 0 for a pointer type
authorVolker Lendecke <vl@samba.org>
Wed, 4 Dec 2019 13:43:02 +0000 (14:43 +0100)
committerRalph Boehme <slow@samba.org>
Mon, 9 Dec 2019 16:10:38 +0000 (16:10 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/server.c

index 6e7292079c6d6a3352408265b72d49999b42875a..f96a42398aeba1f4aea3893e9726db461f032f9e 100644 (file)
@@ -419,7 +419,7 @@ static bool smbd_notifyd_init(struct messaging_context *msg, bool interactive,
        }
 
        if (pid != 0) {
-               if (am_parent != 0) {
+               if (am_parent != NULL) {
                        add_child_pid(am_parent, pid);
                }
                *ppid = pid_to_procid(pid);