mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
* bzmodule.c
More fixes of XDECREF'd values not initialized.
This commit is contained in:
parent
e94d8fab56
commit
7d7930bb3f
1 changed files with 3 additions and 3 deletions
|
@ -1426,7 +1426,7 @@ BZ2Comp_compress(BZ2CompObject *self, PyObject *args)
|
||||||
int datasize;
|
int datasize;
|
||||||
int bufsize = SMALLCHUNK;
|
int bufsize = SMALLCHUNK;
|
||||||
long totalout;
|
long totalout;
|
||||||
PyObject *ret;
|
PyObject *ret = NULL;
|
||||||
bz_stream *bzs = &self->bzs;
|
bz_stream *bzs = &self->bzs;
|
||||||
int bzerror;
|
int bzerror;
|
||||||
|
|
||||||
|
@ -1495,7 +1495,7 @@ static PyObject *
|
||||||
BZ2Comp_flush(BZ2CompObject *self)
|
BZ2Comp_flush(BZ2CompObject *self)
|
||||||
{
|
{
|
||||||
int bufsize = SMALLCHUNK;
|
int bufsize = SMALLCHUNK;
|
||||||
PyObject *ret;
|
PyObject *ret = NULL;
|
||||||
bz_stream *bzs = &self->bzs;
|
bz_stream *bzs = &self->bzs;
|
||||||
int totalout;
|
int totalout;
|
||||||
int bzerror;
|
int bzerror;
|
||||||
|
@ -1905,7 +1905,7 @@ bz2_compress(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
char *data;
|
char *data;
|
||||||
int datasize;
|
int datasize;
|
||||||
int bufsize;
|
int bufsize;
|
||||||
PyObject *ret;
|
PyObject *ret = NULL;
|
||||||
bz_stream _bzs;
|
bz_stream _bzs;
|
||||||
bz_stream *bzs = &_bzs;
|
bz_stream *bzs = &_bzs;
|
||||||
int bzerror;
|
int bzerror;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue