From d7376531310a92837dff47f9b0b130bb529c490b Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 19 Jun 2009 11:14:47 +0200 Subject: Fixed missing check which caused SEGV on Python2.3 Could also be related to an older libxml2 version as well, as this behaviour was found on RHEL4u4 --- src/xmlpythonizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xmlpythonizer.c') diff --git a/src/xmlpythonizer.c b/src/xmlpythonizer.c index 47590dd..6704d1b 100644 --- a/src/xmlpythonizer.c +++ b/src/xmlpythonizer.c @@ -866,7 +866,7 @@ PyObject *_deep_pythonize(PyObject *retdata, ptzMAP *map_p, xmlNode *data_n, int xpo = _get_xpath_values(xpctx, map_p->value); if( xpo != NULL ) { if( _get_key_value(key, 256, map_p, xpctx, 0) != NULL ) { - if( xpo->nodesetval->nodeNr > 0 ) { + if( (xpo->nodesetval != NULL) && (xpo->nodesetval->nodeNr > 0) ) { value = PyList_New(0); // If we're working on a fixed list, create one which contains -- cgit