From 479fcb40c05ecd84bb2df6caa82e9c9fff6bb6b7 Mon Sep 17 00:00:00 2001 From: Loic Le Page Date: Wed, 19 Jan 2022 18:52:29 +0100 Subject: [PATCH] Fix redefinition of local variable in glib/tests/logging.c --- glib/tests/logging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/tests/logging.c b/glib/tests/logging.c index ab6014847..e9c4e396c 100644 --- a/glib/tests/logging.c +++ b/glib/tests/logging.c @@ -525,9 +525,9 @@ test_structured_logging_roundtrip1 (void) if (expected_messages != NULL) { char *str; - ExpectedMessage *expected = expected_messages->data; + ExpectedMessage *msg = expected_messages->data; - str = g_log_writer_format_fields (0, expected->fields, expected->n_fields, FALSE); + str = g_log_writer_format_fields (0, msg->fields, msg->n_fields, FALSE); g_test_fail_printf ("Unexpected message: %s", str); g_free (str); }