mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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:
parent
cbf2881bf7
commit
074d935c6e
Notes:
sideshowbarker
2024-07-19 09:04:39 +09:00
Author: https://github.com/lnzero1dev
Commit: 074d935c6e
Pull-request: https://github.com/SerenityOS/serenity/pull/1285
Reviewed-by: https://github.com/awesomekling
5 changed files with 10 additions and 10 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue