aboutsummaryrefslogtreecommitdiff
path: root/contrib/byacc/yaccpar.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/byacc/yaccpar.c')
-rw-r--r--contrib/byacc/yaccpar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/byacc/yaccpar.c b/contrib/byacc/yaccpar.c
index e57bd4bb7d36..30299074523f 100644
--- a/contrib/byacc/yaccpar.c
+++ b/contrib/byacc/yaccpar.c
@@ -160,14 +160,14 @@ const char *const body_1[] =
"",
" i = (int) (data->s_mark - data->s_base);",
" newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));",
- " if (newss == 0)",
+ " if (newss == NULL)",
" return YYENOMEM;",
"",
" data->s_base = newss;",
" data->s_mark = newss + i;",
"",
" newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));",
- " if (newvs == 0)",
+ " if (newvs == NULL)",
" return YYENOMEM;",
"",
" data->l_base = newvs;",
@@ -206,7 +206,7 @@ const char *const body_2[] =
"#if YYDEBUG",
" const char *yys;",
"",
- " if ((yys = getenv(\"YYDEBUG\")) != 0)",
+ " if ((yys = getenv(\"YYDEBUG\")) != NULL)",
" {",
" yyn = *yys;",
" if (yyn >= '0' && yyn <= '9')",