summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-10-24 19:15:40 +0000
committerMarcus Boerger <helly@php.net>2002-10-24 19:15:40 +0000
commit15b2e277a479175557dd964ad833eb005798d000 (patch)
tree80c3603d15d3fcd17b10b589e3ef3779d6d0b6d2 /ext/pcre
parent67670560e4be002d96250d5402b07055ddef5d2e (diff)
downloadphp-git-15b2e277a479175557dd964ad833eb005798d000.tar.gz
fix compiler warning
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 084dd4958f..e3489415bd 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -753,16 +753,16 @@ PHPAPI char *php_pcre_replace(char *regex, int regex_len,
int backref; /* Backreference number */
int eval; /* If the replacement string should be eval'ed */
int start_offset; /* Where the new search starts */
- int g_notempty = 0; /* If the match should not be empty */
- int replace_len; /* Length of replacement string */
+ int g_notempty=0; /* If the match should not be empty */
+ int replace_len=0; /* Length of replacement string */
char *result, /* Result of replacement */
- *replace, /* Replacement string */
+ *replace=NULL, /* Replacement string */
*new_buf, /* Temporary buffer for re-allocation */
*walkbuf, /* Location of current replacement in the result */
*walk, /* Used to walk the replacement string */
*match, /* The current match */
*piece, /* The current piece of subject */
- *replace_end, /* End of replacement string */
+ *replace_end=NULL, /* End of replacement string */
*eval_result, /* Result of eval or custom function */
walk_last; /* Last walked character */