commit 02c6e842ce9b1232b9538a7da1d702d6e681ac1b
parent 3fd8498fcb4d8666d89cc76d87a13e75e4e1a9e8
Author: TheJackiMonster <thejackimonster@gmail.com>
Date: Thu, 23 Nov 2023 21:49:21 +0100
Remove check below zero of unsigned value
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gnunet_chat_util.c b/src/gnunet_chat_util.c
@@ -121,7 +121,7 @@ util_encrypt_file (const char *filename,
if (!file)
return GNUNET_SYSERR;
- if (size <= 0)
+ if (!size)
return GNUNET_DISK_file_close(file);
struct GNUNET_DISK_MapHandle *mapping;