helly           Mon Apr 10 23:19:23 2006 UTC

  Modified files:              
    /php-src/ext/simplexml      simplexml.c 
  Log:
  - Coverity issue 59
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/simplexml/simplexml.c?r1=1.202&r2=1.203&diff_format=u
Index: php-src/ext/simplexml/simplexml.c
diff -u php-src/ext/simplexml/simplexml.c:1.202 
php-src/ext/simplexml/simplexml.c:1.203
--- php-src/ext/simplexml/simplexml.c:1.202     Wed Mar 29 15:08:52 2006
+++ php-src/ext/simplexml/simplexml.c   Mon Apr 10 23:19:23 2006
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: simplexml.c,v 1.202 2006/03/29 15:08:52 tony2001 Exp $ */
+/* $Id: simplexml.c,v 1.203 2006/04/10 23:19:23 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -2055,6 +2055,9 @@
        if (intern != NULL && intern->node != NULL) {
                curnode = (xmlNodePtr)((php_libxml_node_ptr 
*)intern->node)->node;
        }
+       if (!curnode) {
+               return HASH_KEY_NON_EXISTANT;
+       }
 
        if (UG(unicode)) {
                UErrorCode status = U_ZERO_ERROR;
@@ -2258,7 +2261,7 @@
 {
        php_info_print_table_start();
        php_info_print_table_header(2, "Simplexml support", "enabled");
-       php_info_print_table_row(2, "Revision", "$Revision: 1.202 $");
+       php_info_print_table_row(2, "Revision", "$Revision: 1.203 $");
        php_info_print_table_row(2, "Schema support",
 #ifdef LIBXML_SCHEMAS_ENABLED
                "enabled");

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

Reply via email to