summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-20 19:41:29 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-20 19:41:29 +0200
commit28e34ffe389c0fe6d11e3e981b71703d47da1aef (patch)
tree99860d11354600c6b20a83470f45b7b4e1b6baac /Libraries
parent079d2fe088fdea9ad7345669e5e00daa5109f1ca (diff)
downloadserenity-28e34ffe389c0fe6d11e3e981b71703d47da1aef.zip
LibGfx: Initialize some uninitialized things in GIFLoader
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibGfx/GIFLoader.cpp12
1 files changed, 6 insertions, 6 deletions
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<u8> lzw_encoded_bytes;
RefPtr<Gfx::Bitmap> bitmap;