From 261f0c32a59ba9ecc59f36536ea27bdfdead0939 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Tue, 21 Oct 2008 22:08:20 +0000 Subject: initialize optional vars --- ext/pcre/php_pcre.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 4f1d856ad7..8a90f1d20a 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1286,11 +1286,11 @@ static void preg_replace_impl(INTERNAL_FUNCTION_PARAMETERS, int is_callable_repl **replace, **subject, **subject_entry, - **zcount; + **zcount = NULL; char *result; int result_len; int limit_val = -1; - long limit; + long limit = -1; char *string_key; ulong num_key; char *callback_name; @@ -1607,7 +1607,7 @@ static 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 */ -- cgit v1.2.1