Fix warnings

This commit is contained in:
Marcus Boerger committed 2003-08-10 20:39:58 +00:00
1 parent 9274d2c203
commit d2ea062ef0
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -790,7 +790,7 @@ PHP_FUNCTION(dom_document_create_element_ns)
zval *id, *rv = NULL;
xmlDocPtr docp;
xmlNodePtr nodep = NULL;
xmlNsPtr nsptr;
xmlNsPtr nsptr = NULL;
int ret, uri_len = 0, name_len = 0;
char *uri, *name;
char *localname = NULL, *prefix = NULL;
+3 -1
View File
@@ -152,6 +152,8 @@ PHP_FUNCTION(dom_domimplementation_create_document)
php_error_docref(NULL TSRMLS_CC, E_WARNING, "DocumentType: Wrong Document");
RETURN_FALSE;
}
} else {
doctobj = NULL;
}
if (name_len > 0) {
@@ -216,7 +218,7 @@ PHP_FUNCTION(dom_domimplementation_create_document)
DOM_RET_OBJ(rv, (xmlNodePtr) docp, &ret, NULL);
if (doctype != NULL) {
if (doctobj != NULL) {
doctobj->document = ((dom_object *)((node_ptr *)docp->_private)->_private)->document;
increment_document_reference(doctobj, docp TSRMLS_CC);
}