Fix redefinition of local variable in glib/tests/logging.c

This commit is contained in:
Loic Le Page 2022-01-19 18:52:29 +01:00 committed by Loïc Le Page
parent c53f24ba53
commit 479fcb40c0

View File

@ -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);
}