diff --git a/src/gui/gif_load.h b/src/gui/gif_load.h index d08e66dc4..1730f610c 100644 --- a/src/gui/gif_load.h +++ b/src/gui/gif_load.h @@ -35,7 +35,7 @@ extern "C" { #include /** imports uint8_t, uint16_t and uint32_t **/ #ifndef GIF_MGET #include - #define GIF_MGET(m,s,a,c) m = (uint8_t*)realloc((c)? 0 : m, (c)? s : 0UL); + #define GIF_MGET(m,s,a,c) m = (uint8_t*)realloc((c)? 0 : m, (c)? s : 1UL); #endif #ifndef GIF_BIGE #define GIF_BIGE 0