From 7864108fe02c51ab2b6b028460667273dd59bba9 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 22 Apr 2014 11:57:36 +0200 Subject: [PATCH] fix warning --- php_http_misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php_http_misc.c b/php_http_misc.c index 0515c96..03b9560 100644 --- a/php_http_misc.c +++ b/php_http_misc.c @@ -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)); -- 2.30.2