Fix condition

This commit is contained in:
Anatol Belski 2017-11-17 18:19:32 +01:00
parent 261ed5d2ec
commit 24356e307c

View file

@ -193,7 +193,7 @@ zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const
static zend_always_inline const void *zend_memrchr(const void *s, int c, size_t n)
{
const unsigned char *e;
if (n <= 0) {
if (0 == n) {
return NULL;
}