Skip to content

Commit

Permalink
Merge pull request opencog#1503 from ryandesign/nullptr
Browse files Browse the repository at this point in the history
Use NULL not nullptr in C code
  • Loading branch information
linas authored Apr 23, 2024
2 parents 783b117 + 34d1a1d commit 77dda9c
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 77dda9c

Please sign in to comment.