com php-src: Fix warning "suggest parentheses around assignment": main/SAPI.c
| From: | Xinchen Hui | Date: | Wed, 04 Apr 2012 08:35:32 +0000 |
| Subject: | com php-src: Fix warning "suggest parentheses around assignment": main/SAPI.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68661@lists.php.net to get a copy of this message | ||
Commit: f7bf83546e1f2edb71ad05bd33e01894a359fe02
Author: Xinchen Hui <laruence@gmail.com> Wed, 4 Apr 2012 16:35:32 +0800
Parents: 896c4539df4de06b4359bac9d0e6a397665e2024
Branches: PHP-5.3
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f7bf83546e1f2edb71ad05bd33e01894a359fe02
Log:
Fix warning "suggest parentheses around assignment"
Changed paths:
M main/SAPI.c
Diff:
diff --git a/main/SAPI.c b/main/SAPI.c
index 99142b4..e3284cf 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -618,7 +618,7 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC)
} else {
/* new line safety check */
char *s = header_line;
- while (s = strpbrk(s, "\n\r")) {
+ while ((s = strpbrk(s, "\n\r"))) {
if (s[1] == ' ' || s[1] == '\t') {
/* RFC 2616 allows new lines if followed by SP or HT */
s++;