10000 * bzmodule.c · python/cpython@7d7930b · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d7930b

Browse files
committed
* bzmodule.c
More fixes of XDECREF'd values not initialized.
1 parent e94d8fa commit 7d7930b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/bz2module.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ BZ2Comp_compress(BZ2CompObject *self, PyObject *args)
14261426
int datasize;
14271427
int bufsize = SMALLCHUNK;
14281428
long totalout;
1429-
PyObject *ret;
1429+
PyObject *ret = NULL;
14301430
bz_stream *bzs = &self->bzs;
14311431
int bzerror;
14321432

@@ -1495,7 +1495,7 @@ static PyObject *
14951495
BZ2Comp_flush(BZ2CompObject *self)
14961496
{
14971497
int bufsize = SMALLCHUNK;
1498-
PyObject *ret;
1498+
PyObject *ret = NULL;
14991499
bz_stream *bzs = &self->bzs;
15001500
int totalout;
15011501
int bzerror;
@@ -1905,7 +1905,7 @@ bz2_compress(PyObject *self, PyObject *args, PyObject *kwargs)
19051905
char *data;
19061906
int datasize;
19071907
int bufsize;
1908-
PyObject *ret;
1908+
PyObject *ret = NULL;
19091909
bz_stream _bzs;
19101910
bz_stream *bzs = &_bzs;
19111911
int bzerror;

0 commit comments

Comments
 (0)
0