From 814f9fe806c35899b80d84871ab903860c7f5bdb Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 19 Jul 2002 22:03:03 +0000 Subject: Return NULL instead of 0 from function with a pointer return value. --- Modules/pyexpat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (;;) { -- cgit v0.12