- fix gcc-4.1 warning
authorMichael Wallner <mike@php.net>
Sat, 4 Nov 2006 13:59:49 +0000 (13:59 +0000)
committerMichael Wallner <mike@php.net>
Sat, 4 Nov 2006 13:59:49 +0000 (13:59 +0000)
http_headers_api.c

index 4e65b1d25f861ce1f0170f1b628d5b9bd53101e8..9fd3b752666dfb299b945a43f72223b6b3e1ff06 100644 (file)
@@ -358,7 +358,7 @@ PHP_HTTP_API STATUS _http_parse_headers_ex(const char *header, HashTable *header
                                                        const char *key = header;
                                                        
                                                        /* skip leading ws */
-                                                       while (keylen && HTTP_IS_CTYPE(space, *key)) --keylen && ++key;
+                                                       while (keylen && HTTP_IS_CTYPE(space, *key)) --keylen, ++key;
                                                        /* skip trailing ws */
                                                        while (keylen && HTTP_IS_CTYPE(space, key[keylen - 1])) --keylen;