From 2b38fc187c2a764b7608cd262de5a2777a77f4c8 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 23 Nov 2013 20:21:28 +0000 Subject: [PATCH] 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. --- Modules/_pickle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 4e0d86c69cc..11e07b39020 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -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)