diff options
author | Marcus Boerger <helly@php.net> | 2002-10-24 19:15:40 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-10-24 19:15:40 +0000 |
commit | 15b2e277a479175557dd964ad833eb005798d000 (patch) | |
tree | 80c3603d15d3fcd17b10b589e3ef3779d6d0b6d2 /ext/pcre | |
parent | 67670560e4be002d96250d5402b07055ddef5d2e (diff) | |
download | php-git-15b2e277a479175557dd964ad833eb005798d000.tar.gz |
fix compiler warning
Diffstat (limited to 'ext/pcre')
-rw-r--r-- | ext/pcre/php_pcre.c | 8 |
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 */ |