]> granicus.if.org Git - php/commitdiff
fix 1-byte leak
authorAntony Dovgal <tony2001@php.net>
Thu, 9 Dec 2004 15:07:56 +0000 (15:07 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 9 Dec 2004 15:07:56 +0000 (15:07 +0000)
ext/pcre/php_pcre.c

index 6f5a7aea66e94b502e7630650596522d2891d2a1..f3668a8b3aab8a79322bfb85775cd598619ad6cc 100644 (file)
@@ -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) {