]> granicus.if.org Git - php/commitdiff
MFH
authorMarcus Boerger <helly@php.net>
Wed, 9 Apr 2003 20:36:44 +0000 (20:36 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 9 Apr 2003 20:36:44 +0000 (20:36 +0000)
ext/domxml/php_domxml.c

index b51a24b652e7d1eab49e593f6629b7e5b0e34462..0ae296429c81326819f9f52726eac8f2eed5e9a1 100644 (file)
@@ -1798,7 +1798,7 @@ PHP_FUNCTION(domxml_attr_value)
        DOMXML_NO_ARGS();
 
        /* RETURN_STRING((char *) xmlNodeGetContent((xmlNodePtr) attrp), 1); */
-       if (content = xmlNodeGetContent((xmlNodePtr) attrp)) {
+       if ((content = xmlNodeGetContent((xmlNodePtr) attrp)) != NULL) {
                RETVAL_STRING(content,1);
        } else {
                RETURN_EMPTY_STRING();
@@ -1879,7 +1879,7 @@ PHP_FUNCTION(domxml_pi_data)
        DOMXML_NO_ARGS();
 
        /* RETURN_STRING(xmlNodeGetContent(nodep), 1); */
-       if (content = xmlNodeGetContent(nodep)) {
+       if ((content = xmlNodeGetContent(nodep)) != NULL) {
                RETVAL_STRING(content,1);
        } else {
                RETURN_EMPTY_STRING();