]> granicus.if.org Git - python/commitdiff
Return NULL instead of 0 from function with a pointer return value.
authorFred Drake <fdrake@acm.org>
Fri, 19 Jul 2002 22:03:03 +0000 (22:03 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 19 Jul 2002 22:03:03 +0000 (22:03 +0000)
Modules/pyexpat.c

index 76abe1fe2e85f675c9f5575d80f6998007429316..d259998b5e1c910b3b90427e57bf529c1b5d987c 100644 (file)
@@ -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 (;;) {