diff options
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index e3664f426a..9c39bf8324 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1174,7 +1174,7 @@ PHP_FUNCTION(preg_quote) *out_str, /* Output string with quoted characters */ *p, /* Iterator for input string */ *q, /* Iterator for output string */ - delim_char, /* Delimiter character to be quoted */ + delim_char=0, /* Delimiter character to be quoted */ c; /* Current character */ zend_bool quote_delim = 0; /* Whether to quote additional delim char */ @@ -1199,8 +1199,6 @@ PHP_FUNCTION(preg_quote) if (Z_STRLEN_PP(delim) > 0) { delim_char = Z_STRVAL_PP(delim)[0]; quote_delim = 1; - } else { - delim_char = 0; } } |