From 28e34ffe389c0fe6d11e3e981b71703d47da1aef Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 20 Aug 2020 19:41:29 +0200 Subject: LibGfx: Initialize some uninitialized things in GIFLoader --- Libraries/LibGfx/GIFLoader.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Libraries') diff --git a/Libraries/LibGfx/GIFLoader.cpp b/Libraries/LibGfx/GIFLoader.cpp index fa1ba9a957..0dd20762ee 100644 --- a/Libraries/LibGfx/GIFLoader.cpp +++ b/Libraries/LibGfx/GIFLoader.cpp @@ -43,13 +43,13 @@ struct RGB { }; struct ImageDescriptor { - u16 x; - u16 y; - u16 width; - u16 height; - bool use_global_color_map; + u16 x { 0 }; + u16 y { 0 }; + u16 width { 0 }; + u16 height { 0 }; + bool use_global_color_map { true }; RGB color_map[256]; - u8 lzw_min_code_size; + u8 lzw_min_code_size { 0 }; Vector lzw_encoded_bytes; RefPtr bitmap; -- cgit v1.2.3