]> granicus.if.org Git - php/commitdiff
Fix pg_last_notice() double free.
authorYasuo Ohgaki <yohgaki@php.net>
Fri, 5 Apr 2002 06:37:26 +0000 (06:37 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Fri, 5 Apr 2002 06:37:26 +0000 (06:37 +0000)
# This should be merged

ext/pgsql/pgsql.c

index 269a5609960744118c3fa3f74b74e40219ec0ce8..0b42549a57c514eb196fbb673b2a925ecd6e3715 100644 (file)
@@ -987,7 +987,7 @@ PHP_FUNCTION(pg_affected_rows)
 PHP_FUNCTION(pg_last_notice) 
 {
        if (PGG(last_notice)) {
-               RETURN_STRINGL(PGG(last_notice), PGG(last_notice_len), 0);
+               RETURN_STRINGL(PGG(last_notice), PGG(last_notice_len), 1);
        } else {       
                RETURN_FALSE;
        }