From 34d1a1de846df134915bcadee1951a53daced292 Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Sat, 20 Apr 2024 21:55:49 -0500 Subject: [PATCH] Use NULL not nullptr in C code Partial fix for #1495 --- link-grammar/dict-common/regex-morph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link-grammar/dict-common/regex-morph.c b/link-grammar/dict-common/regex-morph.c index cc342e756..1780c23eb 100644 --- a/link-grammar/dict-common/regex-morph.c +++ b/link-grammar/dict-common/regex-morph.c @@ -189,7 +189,7 @@ static pcre2_match_data* alloc_match_data(void) #else // No threads. Malloc once, forever, and we are done. - static pcre2_match_data *pmd = nullptr; + static pcre2_match_data *pmd = NULL; if (pmd) return pmd; pmd = pcre2_match_data_create(MAX_CAPTURE_GROUPS, NULL); if (pmd) return pmd;