From: Andrei Zmievski Date: Mon, 9 Oct 2006 19:54:38 +0000 (+0000) Subject: Initialize optional vars. X-Git-Tag: RELEASE_1_0_0RC1~1332 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5676227400675b25ab151e48726f8a23326c5d4;p=php Initialize optional vars. --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index cb49d88f89..b3c9bf13e2 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1356,7 +1356,7 @@ static void preg_replace_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_callabl *replace, *subject, **subject_entry, - *zcount; + *zcount = NULL; char *result; int result_len; long limit = -1; @@ -1674,7 +1674,7 @@ PHP_FUNCTION(preg_quote) int in_str_len; char *in_str; /* Input string argument */ char *in_str_end; /* End of the input string */ - int delim_len; + int delim_len = 0; char *delim = NULL; /* Additional delimiter argument */ char *out_str, /* Output string with quoted characters */ *p, /* Iterator for input string */