tests: Fix a -Wmaybe-uninitialized warning in gdbus-serialization test

It’s a false positive, but easy enough to squash.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-04-12 15:35:38 +01:00
parent 9f3322c784
commit d2f5cd4153
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -543,7 +543,7 @@ get_and_check_serialization (GVariant *value)
/* First check that the serialization to the D-Bus wire format is correct - do this for both byte orders */
for (n = 0; n < 2; n++)
{
GDBusMessageByteOrder byte_order;
GDBusMessageByteOrder byte_order = G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN;
switch (n)
{
case 0: