From: Fred Drake Date: Fri, 19 Jul 2002 22:03:03 +0000 (+0000) Subject: Return NULL instead of 0 from function with a pointer return value. X-Git-Tag: v2.3c1~4921 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=814f9fe806c35899b80d84871ab903860c7f5bdb;p=python Return NULL instead of 0 from function with a pointer return value. --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 76abe1fe2e..d259998b5e 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 (;;) {