diff options
author | Sascha Schumann <sas@php.net> | 2000-11-27 13:28:26 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-11-27 13:28:26 +0000 |
commit | 1626ba7ee9f5b2f15a4b769c8db429ce8056a21a (patch) | |
tree | ea23396e21667f96f91a9f60a1662923e1079ee8 | |
parent | 06446416166c8a27fe57cd45d00ee80b8e072c86 (diff) | |
download | php-git-1626ba7ee9f5b2f15a4b769c8db429ce8056a21a.tar.gz |
Oh man, gcc's logic is really flawed
-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; } } |