diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-03-28 22:07:11 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-03-28 22:07:11 +0200 |
commit | 7c5d484f592f2cdd27cd9c87aa606730fd623b70 (patch) | |
tree | 6b0775853a3bbb302283da27f298375326861500 /tests/unit/core/test-core-infolist.cpp | |
parent | 742871fd3e993df51bd5b1a06358c3331c639aef (diff) | |
download | weechat-7c5d484f592f2cdd27cd9c87aa606730fd623b70.zip |
core: check that infolist is not NULL in next/prev/reset_item_cursor functions
Diffstat (limited to 'tests/unit/core/test-core-infolist.cpp')
-rw-r--r-- | tests/unit/core/test-core-infolist.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-infolist.cpp b/tests/unit/core/test-core-infolist.cpp index dc2eb3605..b8e827eb0 100644 --- a/tests/unit/core/test-core-infolist.cpp +++ b/tests/unit/core/test-core-infolist.cpp @@ -314,6 +314,10 @@ TEST(CoreInfolist, Move) POINTERS_EQUAL(NULL, infolist->ptr_item); + infolist_next (NULL); + infolist_prev (NULL); + infolist_reset_item_cursor (NULL); + /* move to first item in infolist */ POINTERS_EQUAL(infolist->items, infolist_next (infolist)); POINTERS_EQUAL(infolist->items, infolist->ptr_item); |