com php-src: Fix condition: Zend/zend_operators.h
| From: | Anatol Belski | Date: | Fri, 17 Nov 2017 17:19:32 +0000 |
| Subject: | com php-src: Fix condition: Zend/zend_operators.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100293@lists.php.net to get a copy of this message | ||
Commit: 24356e307caf7c498aeafe60efff1a93aeaf39ba
Author: Anatol Belski <ab@php.net> Fri, 17 Nov 2017 18:19:32 +0100
Parents: 261ed5d2ec851c07a98550e82c2279a25df9c67f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=24356e307caf7c498aeafe60efff1a93aeaf39ba
Log:
Fix condition
Changed paths:
M Zend/zend_operators.h
Diff:
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index 9d9e205..913ab71 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;
}