projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
1b43287
)
fix warning
author
Michael Wallner
<mike@php.net>
Tue, 22 Apr 2014 09:57:36 +0000
(11:57 +0200)
committer
Michael Wallner
<mike@php.net>
Tue, 22 Apr 2014 09:57:36 +0000
(11:57 +0200)
php_http_misc.c
patch
|
blob
|
history
diff --git
a/php_http_misc.c
b/php_http_misc.c
index 0515c961b597629b388c4df68cc5090d64ad48ad..03b9560483c92198c74de9baec824262c3c05048 100644
(file)
--- 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));