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:
Gregory P. Smith 2013-11-23 20:21:28 +00:00
parent 2489bd83f5
commit 2b38fc187c
1 changed files with 1 additions and 1 deletions

View File

@ -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)