diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-08-18 13:30:38 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-08-18 13:30:38 +0200 |
commit | 14334880d81828b262eeb7eacf7417b148eac3c5 (patch) | |
tree | 55c0d86b5845377114b2b86e9353f29cad702729 /tests/unit | |
parent | 2ad8a0d868b594204eb7199f6380b865ebf45c8b (diff) | |
download | weechat-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.cpp | 4 |
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("", |