The branch main has been updated by fernape:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=88db004d3369f1bc9a6cdf1ead873b2d63413d23

commit 88db004d3369f1bc9a6cdf1ead873b2d63413d23
Author:     Fernando Apesteguía <[email protected]>
AuthorDate: 2026-09-06 16:55:16 +0000
Commit:     Fernando Apesteguía <[email protected]>
CommitDate: 2026-09-06 16:55:16 +0000

    whereis(1): Fix style(9)
    
    Reported by:    ngie@
    Differential Revision:  https://reviews.freebsd.org/D42156
---
 usr.bin/whereis/whereis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/whereis/whereis.c b/usr.bin/whereis/whereis.c
index 987ff68de44c..21b7c11cfb02 100644
--- a/usr.bin/whereis/whereis.c
+++ b/usr.bin/whereis/whereis.c
@@ -316,7 +316,7 @@ defaults(void)
                decolonify(b, &sourcedirs, &nele);
 
                path_ports = getenv("PORTSDIR");
-               if (!path_ports)
+               if (path_ports == NULL)
                        path_ports = PATH_PORTS;
 
                if (stat(path_ports, &sb) == -1) {

Reply via email to