From 1626ba7ee9f5b2f15a4b769c8db429ce8056a21a Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Mon, 27 Nov 2000 13:28:26 +0000 Subject: [PATCH] Oh man, gcc's logic is really flawed --- ext/pcre/php_pcre.c | 4 +--- 1 file changed, 1 insertion(+), 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; } } -- 2.50.1