felipe          Sun Jan 18 23:49:32 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/pgsql  pgsql.c 
  Log:
  - MFH: Fixed bug #47048 (Segfault with new pg_meta_data)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pgsql/pgsql.c?r1=1.331.2.13.2.24.2.25&r2=1.331.2.13.2.24.2.26&diff_format=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.331.2.13.2.24.2.25 
php-src/ext/pgsql/pgsql.c:1.331.2.13.2.24.2.26
--- php-src/ext/pgsql/pgsql.c:1.331.2.13.2.24.2.25      Tue Jan 13 19:08:08 2009
+++ php-src/ext/pgsql/pgsql.c   Sun Jan 18 23:49:31 2009
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: pgsql.c,v 1.331.2.13.2.24.2.25 2009/01/13 19:08:08 iliaa Exp $ */
+/* $Id: pgsql.c,v 1.331.2.13.2.24.2.26 2009/01/18 23:49:31 felipe Exp $ */
 
 #include <stdlib.h>
 
@@ -4831,7 +4831,7 @@
        src = estrdup(table_name);
        tmp_name = php_strtok_r(src, ".", &tmp_name2);
        
-       if (!*tmp_name2) {
+       if (!tmp_name2 || !*tmp_name2) {
                /* Default schema */
                tmp_name2 = tmp_name;
                tmp_name = "public";



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to