summaryrefslogtreecommitdiff
path: root/tests/unit/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:28:11 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 21:06:06 +0200
commitee51e6c05f4895c6fb73e1555708d47f1af8c922 (patch)
treef1f18834175579b00543ef839d28eb4bdb65cdcd /tests/unit/core
parent61ff0b858722f30b1da9107b205642cf193a2dd3 (diff)
downloadweechat-ee51e6c05f4895c6fb73e1555708d47f1af8c922.zip
plugins: remove check of NULL pointers before calling weechat_infolist_free() (issue #865)
Diffstat (limited to 'tests/unit/core')
-rw-r--r--tests/unit/core/test-core-infolist.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-infolist.cpp b/tests/unit/core/test-core-infolist.cpp
index 423a041e0..8347dff9f 100644
--- a/tests/unit/core/test-core-infolist.cpp
+++ b/tests/unit/core/test-core-infolist.cpp
@@ -253,6 +253,9 @@ TEST(CoreInfolist, Valid)
infolist_free (infolist);
LONGS_EQUAL(0, infolist_valid (infolist));
+
+ /* test free of NULL infolist */
+ infolist_free (NULL);
}
/*