From: Anatol Belski Date: Fri, 17 Nov 2017 17:19:32 +0000 (+0100) Subject: Fix condition X-Git-Tag: php-7.3.0alpha1~1000 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24356e307caf7c498aeafe60efff1a93aeaf39ba;p=php Fix condition --- diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 9d9e2055a5..913ab710c4 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -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; }