mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue