mirror of https://github.com/python/cpython.git
gcc doesn't realize that dummy is always initialized by the function call
and warns about potential uninitialized use. Silence that by initializing it to null.
This commit is contained in:
parent
2489bd83f5
commit
2b38fc187c
|
@ -1132,7 +1132,7 @@ _Unpickler_Read(UnpicklerObject *self, char **s, Py_ssize_t n)
|
|||
(self->frame_end_idx == -1 ||
|
||||
self->frame_end_idx <= self->next_read_idx)) {
|
||||
/* Need to read new frame */
|
||||
char *dummy;
|
||||
char *dummy = NULL;
|
||||
unsigned char *frame_start;
|
||||
size_t frame_len;
|
||||
if (_Unpickler_ReadUnframed(self, &dummy, FRAME_HEADER_SIZE) < 0)
|
||||
|
|
Loading…
Reference in New Issue