summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-08-18 13:30:38 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-08-18 13:30:38 +0200
commit14334880d81828b262eeb7eacf7417b148eac3c5 (patch)
tree55c0d86b5845377114b2b86e9353f29cad702729 /tests/unit
parent2ad8a0d868b594204eb7199f6380b865ebf45c8b (diff)
downloadweechat-14334880d81828b262eeb7eacf7417b148eac3c5.zip
tests: fix NULL pointer comparison in test of function irc_message_parse_to_hashtable
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/irc/test-irc-message.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/plugins/irc/test-irc-message.cpp b/tests/unit/plugins/irc/test-irc-message.cpp
index 605a7a19d..8e841bb12 100644
--- a/tests/unit/plugins/irc/test-irc-message.cpp
+++ b/tests/unit/plugins/irc/test-irc-message.cpp
@@ -775,8 +775,8 @@ TEST(IrcMessage, ParseToHashtable)
(const char *)hashtable_get (hashtable, "tags"));
POINTERS_EQUAL(NULL,
(const char *)hashtable_get (hashtable, "tag_time"));
- STRCMP_EQUAL(NULL,
- (const char *)hashtable_get (hashtable, "tag_tag2"));
+ POINTERS_EQUAL(NULL,
+ (const char *)hashtable_get (hashtable, "tag_tag2"));
STRCMP_EQUAL("PING :arguments here",
(const char *)hashtable_get (hashtable, "message_without_tags"));
STRCMP_EQUAL("",