mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 06:59:45 +00:00
fix(src/utils): rstrstr uses nullptr instead of NULL
This commit is contained in:
parent
051dacaf0e
commit
038445f3e8
1 changed files with 2 additions and 2 deletions
|
|
@ -30,12 +30,12 @@ char *Utils::rstrstr (const char *a, const char *b) {
|
|||
const char *s;
|
||||
|
||||
if (b_len > a_len)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
for (s = a + a_len - b_len; s >= a; --s) {
|
||||
if (!strncmp(s, b, b_len))
|
||||
return const_cast<char *>(s);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue