From 18142c0ca750b06320b4593133fe0c1b5a94336b Mon Sep 17 00:00:00 2001
From: Neal Norwitz <nnorwitz@gmail.com>
Date: Tue, 5 Nov 2002 18:17:32 +0000
Subject: [PATCH] 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.
---
 Modules/bz2module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index c664c2a844..638f7fec2a 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -1701,7 +1701,7 @@ BZ2Decomp_decompress(BZ2DecompObject *self, PyObject *args)
 	int datasize;
 	int bufsize = SMALLCHUNK;
 	long totalout;
-	PyObject *ret;
+	PyObject *ret = NULL;
 	bz_stream *bzs = &self->bzs;
 	int bzerror;
 
-- 
2.40.0