tests: Fix GSList test to not dereference off the end of an array

This looks like a typo or copypasta error. As spotted by cppcheck, which
is the code analysis tool GLib deserves, but not the one it needs right
now.
This commit is contained in:
Philip Withnall 2016-08-13 10:29:31 +02:00
parent ba874a8580
commit f1eeb7cf8c

View File

@ -204,7 +204,7 @@ test_slist_remove_all (void)
g_assert_cmpint (g_slist_length (slist), ==, 20);
for (i = 0; i < 10; i++)
for (i = 0; i < 5; i++)
{
slist = g_slist_remove_all (slist, &nums[2 * i + 1]);
slist = g_slist_remove_all (slist, &nums[8 - 2 * i]);