Skip to content

Commit

Permalink
Use NULL not nullptr in C code
Browse files Browse the repository at this point in the history
Partial fix for #1495
  • Loading branch information
ryandesign committed Apr 21, 2024
1 parent 3a26127 commit 34d1a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion link-grammar/dict-common/regex-morph.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 34d1a1d

Please sign in to comment.