summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-10-21 22:08:20 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-10-21 22:08:20 +0000
commit261f0c32a59ba9ecc59f36536ea27bdfdead0939 (patch)
tree975e7657f7129131d9632a7d0a067d23c59fee30 /ext/pcre
parent5b320b8a9bab21e1cf420448cf3004aea34ea9d9 (diff)
downloadphp-git-261f0c32a59ba9ecc59f36536ea27bdfdead0939.tar.gz
initialize optional vars
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c6
1 files changed, 3 insertions, 3 deletions
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 */