The branch main has been updated by emaste:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=337f5e7a44c4d5ac29e0b0c0fe957bb3b9bae222

commit 337f5e7a44c4d5ac29e0b0c0fe957bb3b9bae222
Author:     Ed Maste <ema...@freebsd.org>
AuthorDate: 2025-02-28 21:16:29 +0000
Commit:     Ed Maste <ema...@freebsd.org>
CommitDate: 2025-02-28 21:17:34 +0000

    makefs: Compare pointer against NULL, not 0
    
    Reported by:    rpokala
    Sponsred by:    The FreeBSD Foundation
    Fixes: 35a2e286157a ("makefs: Record inode for all entries in mtree mode")
---
 usr.sbin/makefs/cd9660/iso9660_rrip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/makefs/cd9660/iso9660_rrip.c 
b/usr.sbin/makefs/cd9660/iso9660_rrip.c
index e037f1db175f..1b8ce42da4c0 100644
--- a/usr.sbin/makefs/cd9660/iso9660_rrip.c
+++ b/usr.sbin/makefs/cd9660/iso9660_rrip.c
@@ -667,7 +667,7 @@ inode_map(iso9660_disk *diskStructure, uint64_t in)
        if (in != 0) {
                node = RB_FIND(inode_map_tree, &(diskStructure->rr_inode_map),
                    &lookup);
-               if (node != 0)
+               if (node != NULL)
                        return (node->value);
        }
 

Reply via email to