summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2012-04-04 08:35:32 (GMT)
committerXinchen Hui <laruence@gmail.com>2012-04-04 08:35:32 (GMT)
commitf7bf83546e1f2edb71ad05bd33e01894a359fe02 (patch)
tree1c984d248cbe7874c84c2819a5eaf69b132f2184
parent896c4539df4de06b4359bac9d0e6a397665e2024 (diff)
downloadphp-f7bf83546e1f2edb71ad05bd33e01894a359fe02.tar.gz
Fix warning "suggest parentheses around assignment"
-rw-r--r--main/SAPI.c2
1 files changed, 1 insertions, 1 deletions
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++;