From f7bf83546e1f2edb71ad05bd33e01894a359fe02 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Wed, 4 Apr 2012 16:35:32 +0800 Subject: [PATCH] Fix warning "suggest parentheses around assignment" --- main/SAPI.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/SAPI.c b/main/SAPI.c index 99142b43738..e3284cfcf36 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++;