Skip to content

Commit 18142c0

Browse files
committed
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.
1 parent 2801fe1 commit 18142c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/bz2module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ BZ2Decomp_decompress(BZ2DecompObject *self, PyObject *args)
17011701
int datasize;
17021702
int bufsize = SMALLCHUNK;
17031703
long totalout;
1704-
PyObject *ret;
1704+
PyObject *ret = NULL;
17051705
bz_stream *bzs = &self->bzs;
17061706
int bzerror;
17071707

0 commit comments

Comments
 (0)