mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 12:53:07 +02: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);
|
g_assert (g_queue_peek_head (q) == NULL);
|
||||||
break;
|
break;
|
||||||
case PEEK_TAIL:
|
case PEEK_TAIL:
|
||||||
if (qinf->head)
|
if (qinf->tail)
|
||||||
g_assert (qinf->tail->data == g_queue_peek_tail (q));
|
g_assert (qinf->tail->data == g_queue_peek_tail (q));
|
||||||
else
|
else
|
||||||
g_assert (g_queue_peek_tail (q) == NULL);
|
g_assert (g_queue_peek_tail (q) == NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user