mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
tests: Fix copy/paste error in queue test
Coverity is pretty good at detecting copy/paste errors.
This commit is contained in:
parent
01101813a5
commit
3a74ad128e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user