1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

AK, LibGfx, LibGUI: Initialize various variables to zero.

The not initialized variables can lead to compiler warnings that
become errors with the -Werror flag.
This commit is contained in:
Emanuel Sprung 2020-02-23 01:32:00 +01:00 committed by Andreas Kling
parent cbf2881bf7
commit 074d935c6e
5 changed files with 10 additions and 10 deletions

View file

@ -46,8 +46,8 @@ namespace IPC {
bool decode(BufferStream& stream, Gfx::Size& size)
{
int width;
int height;
int width = 0;
int height = 0;
stream >> width;
stream >> height;
if (stream.handle_read_failure())