diff options
| author | scoder <none@none> | 2006-05-26 09:35:30 +0200 |
|---|---|---|
| committer | scoder <none@none> | 2006-05-26 09:35:30 +0200 |
| commit | e336dfdb332dbeacd7cd5fd20fae7a684e97cb0c (patch) | |
| tree | e9fd72bab8c18460524f87655a9a2704ab4da0db /src/lxml/xmlschema.pxi | |
| parent | a39f02a44b70eea6ce06a9c2baae2e5ecc5df531 (diff) | |
| download | python-lxml-e336dfdb332dbeacd7cd5fd20fae7a684e97cb0c.tar.gz | |
[svn r1292] fix crashes when calling API functions with uninitialized ElementTree objects
--HG--
branch : trunk
Diffstat (limited to 'src/lxml/xmlschema.pxi')
| -rw-r--r-- | src/lxml/xmlschema.pxi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lxml/xmlschema.pxi b/src/lxml/xmlschema.pxi index 97e99750..5c95bc05 100644 --- a/src/lxml/xmlschema.pxi +++ b/src/lxml/xmlschema.pxi @@ -26,7 +26,7 @@ cdef class XMLSchema(_Validator): self._c_schema = NULL if etree is not None: doc = _documentOrRaise(etree) - root_node = _rootNodeOf(etree) + root_node = _rootNodeOrRaise(etree) # work around for libxml2 bug if document is not XML schema at all c_node = root_node._c_node @@ -73,7 +73,7 @@ cdef class XMLSchema(_Validator): cdef int ret doc = _documentOrRaise(etree) - root_node = _rootNodeOf(etree) + root_node = _rootNodeOrRaise(etree) self._error_log.connect() valid_ctxt = xmlschema.xmlSchemaNewValidCtxt(self._c_schema) |
