git: 88db004d3369 - main - whereis(1): Fix style(9)

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Sun, 06 Sep 2026 16:56:44 UTC
The branch main has been updated by fernape:

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

commit 88db004d3369f1bc9a6cdf1ead873b2d63413d23
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2026-09-06 16:55:16 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
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) {