aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2023-11-23 21:49:21 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2023-11-23 21:49:21 +0100
commit02c6e842ce9b1232b9538a7da1d702d6e681ac1b (patch)
tree159b3fe8d14b611d6aad4755e537f0a7b231360b
parent3fd8498fcb4d8666d89cc76d87a13e75e4e1a9e8 (diff)
downloadlibgnunetchat-02c6e842ce9b1232b9538a7da1d702d6e681ac1b.tar.gz
libgnunetchat-02c6e842ce9b1232b9538a7da1d702d6e681ac1b.zip
Remove check below zero of unsigned value
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--src/gnunet_chat_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gnunet_chat_util.c b/src/gnunet_chat_util.c
index 9246308..abe16f0 100644
--- a/src/gnunet_chat_util.c
+++ b/src/gnunet_chat_util.c
@@ -121,7 +121,7 @@ util_encrypt_file (const char *filename,
121 if (!file) 121 if (!file)
122 return GNUNET_SYSERR; 122 return GNUNET_SYSERR;
123 123
124 if (size <= 0) 124 if (!size)
125 return GNUNET_DISK_file_close(file); 125 return GNUNET_DISK_file_close(file);
126 126
127 struct GNUNET_DISK_MapHandle *mapping; 127 struct GNUNET_DISK_MapHandle *mapping;