Skip to content

Commit 17f5678

Browse files
authored
Fix uninitialized beginCalled
Fixes AV by initializing things properly
1 parent 97982a5 commit 17f5678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GifDecoder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ template <int maxGifWidth, int maxGifHeight, int lzwMaxBits, bool useMalloc=fals
7474
AnimatedGIF * gif;
7575
uint8_t buffer[useMalloc ? 0 : sizeof(AnimatedGIF)];
7676

77-
bool beginCalled;
77+
bool beginCalled = false;
7878
bool usingFileCallbacks = true;
7979

8080
uint8_t *gifPData;

0 commit comments

Comments
 (0)