From 14334880d81828b262eeb7eacf7417b148eac3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 18 Aug 2023 13:30:38 +0200 Subject: [PATCH] tests: fix NULL pointer comparison in test of function irc_message_parse_to_hashtable --- tests/unit/plugins/irc/test-irc-message.cpp | 4 ++-- 1 file 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("",