Commit 038445f3 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(src/utils): `rstrstr` uses nullptr instead of NULL

parent 051dacaf
...@@ -30,12 +30,12 @@ char *Utils::rstrstr (const char *a, const char *b) { ...@@ -30,12 +30,12 @@ char *Utils::rstrstr (const char *a, const char *b) {
const char *s; const char *s;
if (b_len > a_len) if (b_len > a_len)
return NULL; return nullptr;
for (s = a + a_len - b_len; s >= a; --s) { for (s = a + a_len - b_len; s >= a; --s) {
if (!strncmp(s, b, b_len)) if (!strncmp(s, b, b_len))
return const_cast<char *>(s); return const_cast<char *>(s);
} }
return NULL; return nullptr;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment