[Python-checkins] python/dist/src/Modules pyexpat.c,2.70,2.71

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Fri, 19 Jul 2002 15:03:06 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv2176

Modified Files:
	pyexpat.c 
Log Message:
Return NULL instead of 0 from function with a pointer return value.


Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.70
retrieving revision 2.71
diff -C2 -d -r2.70 -r2.71
*** pyexpat.c	19 Jul 2002 06:55:41 -0000	2.70
--- pyexpat.c	19 Jul 2002 22:03:03 -0000	2.71
***************
*** 843,847 ****
              PyErr_SetString(PyExc_TypeError,
                              "argument must have 'read' attribute");
!             return 0;
          }
      }
--- 843,847 ----
              PyErr_SetString(PyExc_TypeError,
                              "argument must have 'read' attribute");
!             return NULL;
          }
      }