Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Apr 2021 15:59:46 GMT
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f1dab9dbdf12 - stable/13 - lex: Use NULL instead of 0 for pointers
Message-ID:  <202104231559.13NFxkNA089299@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jkim:

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

commit f1dab9dbdf125d010213a7ac5ee778cd8fbf0a1a
Author:     Jung-uk Kim <jkim@FreeBSD.org>
AuthorDate: 2021-02-11 23:31:53 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2021-04-23 15:59:29 +0000

    lex: Use NULL instead of 0 for pointers
    
    Note araujo tried to fix it in r298241 but he only touched generated
    files for bootstrap.  This commit properly fixes the problem.
    
    (cherry picked from commit 34e67bb5977049afb3e965b52b86ac12ea4899b4)
---
 contrib/flex/src/scan.l | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/flex/src/scan.l b/contrib/flex/src/scan.l
index 1570f505b342..d01406ecdd4a 100644
--- a/contrib/flex/src/scan.l
+++ b/contrib/flex/src/scan.l
@@ -705,7 +705,7 @@ M4QEND      "]""]"
  			 }
 nmstr[yyleng - 2 - end_is_ws] = '\0';  /* chop trailing brace */
 
-			if ( (nmdefptr = ndlookup( nmstr )) == 0 )
+			if ( (nmdefptr = ndlookup( nmstr )) == NULL )
 				format_synerr(
 					_( "undefined definition {%s}" ),
 						nmstr );



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