]> granicus.if.org Git - php/commitdiff
MFH.
authorYasuo Ohgaki <yohgaki@php.net>
Fri, 5 Apr 2002 06:45:25 +0000 (06:45 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Fri, 5 Apr 2002 06:45:25 +0000 (06:45 +0000)
Fixed pg_last_notice() double free.

ext/pgsql/pgsql.c

index 7171f332daf5b8d854b75fd83b8fe3683abf0c19..8e9fe793b00caf1fd3c4b44738d24604091c8743 100644 (file)
@@ -975,7 +975,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;
        }