mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 20:25:14 +03:00
fixing bug #98792 , node may have no doc and dereferencing without
* python/libxml.c: fixing bug #98792 , node may have no doc and dereferencing without checking ain't good ... Daniel
This commit is contained in:
parent
dad3f680e5
commit
a8c0adbc39
@ -1,3 +1,8 @@
|
|||||||
|
Sun Nov 17 23:36:06 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* python/libxml.c: fixing bug #98792 , node may have no doc
|
||||||
|
and dereferencing without checking ain't good ...
|
||||||
|
|
||||||
Sun Nov 17 10:25:43 CET 2002 Daniel Veillard <daniel@veillard.com>
|
Sun Nov 17 10:25:43 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* configure.in: preparing release 2.4.27
|
* configure.in: preparing release 2.4.27
|
||||||
|
@ -1995,7 +1995,7 @@ libxml_serializeNode(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
|||||||
py_retval = libxml_charPtrWrap((char *) c_retval);
|
py_retval = libxml_charPtrWrap((char *) c_retval);
|
||||||
} else {
|
} else {
|
||||||
doc = node->doc;
|
doc = node->doc;
|
||||||
if (doc->type == XML_DOCUMENT_NODE) {
|
if ((doc == NULL) || (doc->type == XML_DOCUMENT_NODE)) {
|
||||||
xmlOutputBufferPtr buf;
|
xmlOutputBufferPtr buf;
|
||||||
xmlCharEncodingHandlerPtr handler = NULL;
|
xmlCharEncodingHandlerPtr handler = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user