fix warning
authorMichael Wallner <mike@php.net>
Tue, 22 Apr 2014 09:57:36 +0000 (11:57 +0200)
committerMichael Wallner <mike@php.net>
Tue, 22 Apr 2014 09:57:36 +0000 (11:57 +0200)
php_http_misc.c

index 0515c961b597629b388c4df68cc5090d64ad48ad..03b9560483c92198c74de9baec824262c3c05048 100644 (file)
@@ -61,7 +61,8 @@ int php_http_match(const char *haystack_str, const char *needle_str, int flags)
                        result = !strcasecmp(haystack_str, needle_str);
                }
        } else {
-               char *found, *haystack = estrdup(haystack_str), *needle = estrdup(needle_str);
+               const char *found;
+               char *haystack = estrdup(haystack_str), *needle = estrdup(needle_str);
 
                if (flags & PHP_HTTP_MATCH_CASE) {
                        found = zend_memnstr(haystack, needle, strlen(needle), haystack+strlen(haystack));