summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2002-11-05 18:41:53 (GMT)
committerGustavo Niemeyer <gustavo@niemeyer.net>2002-11-05 18:41:53 (GMT)
commit7d7930bb3fdb16e3a041a983717cffdd142ea8cf (patch)
tree2aa15157071fd2b9a3d6f87005641a4960d8d8d9 /Modules
parente94d8fab5671b1d76c76881b20ec133a627d7936 (diff)
downloadcpython-7d7930bb3fdb16e3a041a983717cffdd142ea8cf.zip
cpython-7d7930bb3fdb16e3a041a983717cffdd142ea8cf.tar.gz
cpython-7d7930bb3fdb16e3a041a983717cffdd142ea8cf.tar.bz2
* bzmodule.c
More fixes of XDECREF'd values not initialized.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/bz2module.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c
index 638f7fe..9c37906 100644
--- a/Modules/bz2module.c
+++ b/Modules/bz2module.c
@@ -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;