[glib/mcatanzaro/queue] tests: Fix copy/paste error in queue test




commit 3a74ad128eb9a3431c54a88fa36269cb41e11c3e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Mar 16 12:52:08 2021 -0500

    tests: Fix copy/paste error in queue test
    
    Coverity is pretty good at detecting copy/paste errors.

 glib/tests/queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/queue.c b/glib/tests/queue.c
index e77821372..f092f6bfc 100644
--- a/glib/tests/queue.c
+++ b/glib/tests/queue.c
@@ -435,7 +435,7 @@ random_test (gconstpointer d)
             g_assert (g_queue_peek_head (q) == NULL);
           break;
         case PEEK_TAIL:
-          if (qinf->head)
+          if (qinf->tail)
             g_assert (qinf->tail->data == g_queue_peek_tail (q));
           else
             g_assert (g_queue_peek_tail (q) == NULL);


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