From: Neal Norwitz Date: Tue, 5 Nov 2002 18:17:32 +0000 (+0000) Subject: Fix SF #633935, test_bz2 fails X-Git-Tag: v2.3c1~3575 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18142c0ca750b06320b4593133fe0c1b5a94336b;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Modules/bz2module.c b/Modules/bz2module.c index c664c2a8442d..638f7fec2aad 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;