[glib: 8/11] Fix redefinition of local variable in glib/tests/logging.c




commit 479fcb40c05ecd84bb2df6caa82e9c9fff6bb6b7
Author: Loic Le Page <llepage fluendo com>
Date:   Wed Jan 19 18:52:29 2022 +0100

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]