[Python-checkins] python/dist/src/Modules bz2module.c,1.1,1.2

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Tue, 05 Nov 2002 10:17:36 -0800


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

Modified Files:
	bz2module.c 
Log Message:
Fix SF #633935, test_bz2 fails

Needed to init ret since it was Py_XDECREF()d on error.
All regressions pass in debug build for me.


Index: bz2module.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/bz2module.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bz2module.c	5 Nov 2002 16:50:05 -0000	1.1
--- bz2module.c	5 Nov 2002 18:17:32 -0000	1.2
***************
*** 1702,1706 ****
  	int bufsize = SMALLCHUNK;
  	long totalout;
! 	PyObject *ret;
  	bz_stream *bzs = &self->bzs;
  	int bzerror;
--- 1702,1706 ----
  	int bufsize = SMALLCHUNK;
  	long totalout;
! 	PyObject *ret = NULL;
  	bz_stream *bzs = &self->bzs;
  	int bzerror;