diff options
author | Fred Drake <fdrake@acm.org> | 2002-07-19 22:03:03 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-07-19 22:03:03 (GMT) |
commit | 814f9fe806c35899b80d84871ab903860c7f5bdb (patch) | |
tree | 58f81f849337def18bd16557894b5811994c0d5d /Modules/pyexpat.c | |
parent | e5bd2f44475f382c78cbfb54a5443956f8b680ce (diff) | |
download | cpython-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/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 2 |
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 (;;) { |