Don't pass null to memchr
This commit is contained in:
@@ -136,7 +136,8 @@ private:
|
||||
}
|
||||
}
|
||||
for (;;) {
|
||||
result = (char *)memchr(result, '"', bufEnd - result);
|
||||
result = result == nullptr ? nullptr
|
||||
: (char *)memchr(result, '"', bufEnd - result);
|
||||
if (result == nullptr) {
|
||||
if (complete) {
|
||||
return S_REJECT;
|
||||
|
||||
Reference in New Issue
Block a user