summaryrefslogtreecommitdiff
path: root/tests/regex_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regex_test.cpp')
-rw-r--r--tests/regex_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regex_test.cpp b/tests/regex_test.cpp
index 0e7f8dd7f..0d88261cf 100644
--- a/tests/regex_test.cpp
+++ b/tests/regex_test.cpp
@@ -23,8 +23,8 @@ TEST(regex, smoke) {
// A quick test of all the regex functions.
regex_t re;
ASSERT_EQ(0, regcomp(&re, "ab*c", 0));
- ASSERT_EQ(0, regexec(&re, "abbbc", 0, NULL, 0));
- ASSERT_EQ(REG_NOMATCH, regexec(&re, "foo", 0, NULL, 0));
+ ASSERT_EQ(0, regexec(&re, "abbbc", 0, nullptr, 0));
+ ASSERT_EQ(REG_NOMATCH, regexec(&re, "foo", 0, nullptr, 0));
char buf[80];
regerror(REG_NOMATCH, &re, buf, sizeof(buf));