Return NULL instead of 0 from function with a pointer return value.
This commit is contained in:
@@ -842,7 +842,7 @@ xmlparse_ParseFile(xmlparseobject *self, PyObject *args)
|
||||
PyErr_Clear();
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"argument must have 'read' attribute");
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user