Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2025 21:18:04 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 337f5e7a44c4 - main - makefs: Compare pointer against NULL, not 0
Message-ID:  <202502282118.51SLI4dI099989@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by emaste:

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

commit 337f5e7a44c4d5ac29e0b0c0fe957bb3b9bae222
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-02-28 21:16:29 +0000
Commit:     Ed Maste <emaste@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);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502282118.51SLI4dI099989>