From: Sascha Schumann Date: Mon, 27 Nov 2000 13:28:26 +0000 (+0000) Subject: Oh man, gcc's logic is really flawed X-Git-Tag: php-4.0.4RC3~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1626ba7ee9f5b2f15a4b769c8db429ce8056a21a;p=php Oh man, gcc's logic is really flawed --- 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; } }