summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-07-19 22:03:03 (GMT)
committerFred Drake <fdrake@acm.org>2002-07-19 22:03:03 (GMT)
commit814f9fe806c35899b80d84871ab903860c7f5bdb (patch)
tree58f81f849337def18bd16557894b5811994c0d5d /Modules
parente5bd2f44475f382c78cbfb54a5443956f8b680ce (diff)
downloadcpython-814f9fe806c35899b80d84871ab903860c7f5bdb.zip
cpython-814f9fe806c35899b80d84871ab903860c7f5bdb.tar.gz
cpython-814f9fe806c35899b80d84871ab903860c7f5bdb.tar.bz2
Return NULL instead of 0 from function with a pointer return value.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/pyexpat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 76abe1f..d259998 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -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 (;;) {