mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Return NULL instead of 0 from function with a pointer return value.
This commit is contained in:
parent
e5bd2f4447
commit
814f9fe806
1 changed files with 1 additions and 1 deletions
|
|
@ -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 (;;) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue