mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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:
parent
ba874a8580
commit
f1eeb7cf8c
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user