libgnunetchat

library for GNUnet Messenger
Log | Files | Refs | README | LICENSE

commit 5e1cb4d5e87dfdc6d58949fabb03e70f5e60fb7f
parent 6b19d6dc3899e1ed5109a6c58f58f970293237a5
Author: TheJackiMonster <thejackimonster@gmail.com>
Date:   Thu, 23 Nov 2023 21:46:15 +0100

Remove check below zero of unsigned value

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>

Diffstat:
Msrc/gnunet_chat_handle.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c @@ -855,7 +855,7 @@ handle_process_records (struct GNUNET_CHAT_Handle *handle, { GNUNET_assert((handle) && (data)); - if (count <= 0) + if (!count) return NULL; const struct GNUNET_MESSENGER_RoomEntryRecord *record = NULL;