diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2021-02-11 23:31:53 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2021-02-11 23:31:53 +0000 |
commit | 34e67bb5977049afb3e965b52b86ac12ea4899b4 (patch) | |
tree | b1dee8e2337b7e1a331a31b927cd26cddf298145 | |
parent | 7fe2f504f8a0e4237872f8528e911c5f7b7ed59d (diff) |
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.
-rw-r--r-- | contrib/flex/src/scan.l | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |