]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
* bzmodule.c
authorGustavo Niemeyer <gustavo@niemeyer.net>
Tue, 5 Nov 2002 18:41:53 +0000 (18:41 +0000)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Tue, 5 Nov 2002 18:41:53 +0000 (18:41 +0000)
  More fixes of XDECREF'd values not initialized.

Modules/bz2module.c

index 638f7fec2aaddcbb7a3750c993d9c07be726910f..9c37906954b7cc36b821c3e6efd73b471ef7c00d 100644 (file)
@@ -1426,7 +1426,7 @@ BZ2Comp_compress(BZ2CompObject *self, PyObject *args)
        int datasize;
        int bufsize = SMALLCHUNK;
        long totalout;
-       PyObject *ret;
+       PyObject *ret = NULL;
        bz_stream *bzs = &self->bzs;
        int bzerror;
 
@@ -1495,7 +1495,7 @@ static PyObject *
 BZ2Comp_flush(BZ2CompObject *self)
 {
        int bufsize = SMALLCHUNK;
-       PyObject *ret;
+       PyObject *ret = NULL;
        bz_stream *bzs = &self->bzs;
        int totalout;
        int bzerror;
@@ -1905,7 +1905,7 @@ bz2_compress(PyObject *self, PyObject *args, PyObject *kwargs)
        char *data;
        int datasize;
        int bufsize;
-       PyObject *ret;
+       PyObject *ret = NULL;
        bz_stream _bzs;
        bz_stream *bzs = &_bzs;
        int bzerror;