Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): compare pointers against NULL instead ...



details:   https://anonhg.NetBSD.org/src/rev/20f2c1e5436a
branches:  trunk
changeset: 978359:20f2c1e5436a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu Nov 19 14:42:33 2020 +0000

description:
make(1): compare pointers against NULL instead of implicit conversion

diffstat:

 usr.bin/make/suff.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 56469fb1b95e -r 20f2c1e5436a usr.bin/make/suff.c
--- a/usr.bin/make/suff.c       Thu Nov 19 14:32:25 2020 +0000
+++ b/usr.bin/make/suff.c       Thu Nov 19 14:42:33 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suff.c,v 1.248 2020/11/19 14:32:25 rillig Exp $        */
+/*     $NetBSD: suff.c,v 1.249 2020/11/19 14:42:33 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -114,7 +114,7 @@
 #include "dir.h"
 
 /*     "@(#)suff.c     8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.248 2020/11/19 14:32:25 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.249 2020/11/19 14:42:33 rillig Exp $");
 
 #define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
 #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -398,7 +398,7 @@
 #endif
     sufflist = Lst_New();
     sNum = 0;
-    if (suffNull)
+    if (suffNull != NULL)
        SuffFree(suffNull);
     emptySuff = suffNull = SuffNew("");
 
@@ -1961,7 +1961,7 @@
 #ifdef CLEANUP
     Lst_Destroy(sufflist, SuffFree);
     Lst_Destroy(suffClean, SuffFree);
-    if (suffNull)
+    if (suffNull != NULL)
        SuffFree(suffNull);
     Lst_Free(srclist);
     Lst_Free(transforms);



Home | Main Index | Thread Index | Old Index