fix uninitialized value
authorMichael Wallner <mike@php.net>
Thu, 9 Sep 2010 12:48:53 +0000 (12:48 +0000)
committerMichael Wallner <mike@php.net>
Thu, 9 Sep 2010 12:48:53 +0000 (12:48 +0000)
php_http_misc.c

index c52f83f91fddc6f840e3b52964830a9a55294a36..b345eff6e20800e290a9d597101ffb760928c072 100644 (file)
@@ -51,7 +51,7 @@ PHP_HTTP_API void php_http_sleep(double s)
 
 int php_http_match(const char *haystack_str, const char *needle_str, int flags)
 {
-       int result;
+       int result = 0;
 
        if (flags & PHP_HTTP_MATCH_FULL) {
                if (flags & PHP_HTTP_MATCH_CASE) {