felipe          Sun Jan 18 23:49:11 2009 UTC

  Modified files:              
    /php-src/ext/pgsql  pgsql.c 
  Log:
  - Fixed bug #47048 (Segfault with new pg_meta_data)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pgsql/pgsql.c?r1=1.397&r2=1.398&diff_format=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.397 php-src/ext/pgsql/pgsql.c:1.398
--- php-src/ext/pgsql/pgsql.c:1.397     Tue Jan 13 19:08:37 2009
+++ php-src/ext/pgsql/pgsql.c   Sun Jan 18 23:49:11 2009
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: pgsql.c,v 1.397 2009/01/13 19:08:37 iliaa Exp $ */
+/* $Id: pgsql.c,v 1.398 2009/01/18 23:49:11 felipe Exp $ */
 
 #include <stdlib.h>
 
@@ -4830,7 +4830,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