aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2023-11-23 21:46:15 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2023-11-23 21:46:15 +0100
commit5e1cb4d5e87dfdc6d58949fabb03e70f5e60fb7f (patch)
treecc8d9c0453b9adce7624f8178e5d6ef7fa9e89c6
parent6b19d6dc3899e1ed5109a6c58f58f970293237a5 (diff)
downloadlibgnunetchat-5e1cb4d5e87dfdc6d58949fabb03e70f5e60fb7f.tar.gz
libgnunetchat-5e1cb4d5e87dfdc6d58949fabb03e70f5e60fb7f.zip
Remove check below zero of unsigned value
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--src/gnunet_chat_handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c
index 8eb42ba..96c5a84 100644
--- a/src/gnunet_chat_handle.c
+++ b/src/gnunet_chat_handle.c
@@ -855,7 +855,7 @@ handle_process_records (struct GNUNET_CHAT_Handle *handle,
855{ 855{
856 GNUNET_assert((handle) && (data)); 856 GNUNET_assert((handle) && (data));
857 857
858 if (count <= 0) 858 if (!count)
859 return NULL; 859 return NULL;
860 860
861 const struct GNUNET_MESSENGER_RoomEntryRecord *record = NULL; 861 const struct GNUNET_MESSENGER_RoomEntryRecord *record = NULL;