From 68fd58a7e292c61357e0cae8f9783f91e437d52a Mon Sep 17 00:00:00 2001 From: Alastair Houghton Date: Fri, 14 Mar 2014 17:25:38 +0000 Subject: [PATCH] Initialize handles_eof (oops). --- decode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/decode.c b/decode.c index f3eaa9a50..f1e4aeaba 100644 --- a/decode.c +++ b/decode.c @@ -94,6 +94,9 @@ PyImaging_DecoderNew(int contextsize) /* Initialize the cleanup function pointer */ decoder->cleanup = NULL; + /* Most decoders don't want to handle EOF themselves */ + decoder->handles_eof = 0; + return decoder; }