From 5dbe3f6f4fc5004be1f3635e7baf00f001432a8f Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 9 Dec 2004 15:07:56 +0000 Subject: fix 1-byte leak --- ext/pcre/php_pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 6f5a7aea66..f3668a8b3a 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1416,7 +1416,7 @@ PHP_FUNCTION(preg_quote) /* Nothing to do if we got an empty string */ if (in_str == in_str_end) { - RETVAL_STRINGL("", 0, 1); + RETVAL_STRINGL("", 0, 0); } if (ZEND_NUM_ARGS() == 2) { -- cgit v1.2.1