mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-05 19:01:18 +03:00
more cleanups based on coverity reports. Daniel
* SAX2.c catalog.c encoding.c entities.c example/gjobread.c python/libxml.c: more cleanups based on coverity reports. Daniel
This commit is contained in:
@ -2323,13 +2323,13 @@ static PyObject *
|
||||
libxml_properties(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||
{
|
||||
PyObject *resultobj, *obj;
|
||||
xmlNodePtr cur = NULL;
|
||||
xmlNodePtr cur;
|
||||
xmlAttrPtr res;
|
||||
|
||||
if (!PyArg_ParseTuple(args, (char *) "O:properties", &obj))
|
||||
return NULL;
|
||||
cur = PyxmlNode_Get(obj);
|
||||
if (cur->type == XML_ELEMENT_NODE)
|
||||
if ((cur != NULL) && (cur->type == XML_ELEMENT_NODE))
|
||||
res = cur->properties;
|
||||
else
|
||||
res = NULL;
|
||||
|
Reference in New Issue
Block a user