From 8afae2ebafbe4c4db22100111bbf7f9dccd82246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 14 May 2021 12:05:25 +0200 Subject: [PATCH] clutter/xsettings-client: Zero-initialize stack struct This fixes a warning/error: In function 'parse_settings', inlined from 'read_settings' at ../clutter/clutter/x11/xsettings/xsettings-client.c:398:25: ../clutter/clutter/x11/xsettings/xsettings-client.c:202:13: error: 'buffer.byte_order' may be used uninitialized [-Werror=maybe-uninitialized] 202 | if (buffer.byte_order != MSBFirst && | ~~~~~~^~~~~~~~~~~ This is needed to bump the CI image from F33 to F34, which includes a upgraded compiler. Part-of: --- clutter/clutter/x11/xsettings/xsettings-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/x11/xsettings/xsettings-client.c b/clutter/clutter/x11/xsettings/xsettings-client.c index f23149901..120809c65 100644 --- a/clutter/clutter/x11/xsettings/xsettings-client.c +++ b/clutter/clutter/x11/xsettings/xsettings-client.c @@ -185,7 +185,7 @@ static XSettingsList * parse_settings (unsigned char *data, size_t len) { - XSettingsBuffer buffer; + XSettingsBuffer buffer = { 0 }; XSettingsResult result = XSETTINGS_SUCCESS; XSettingsList *settings = NULL; CARD32 serial;