mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
gbase64: Fix an impossible condition
len is unsigned, so it’s not possible for it to be less than zero. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
ff76f6920e
commit
f9dfddf8eb
@ -105,7 +105,7 @@ g_base64_encode_step (const guchar *in,
|
||||
g_return_val_if_fail (state != NULL, 0);
|
||||
g_return_val_if_fail (save != NULL, 0);
|
||||
|
||||
if (len <= 0)
|
||||
if (len == 0)
|
||||
return 0;
|
||||
|
||||
inptr = in;
|
||||
@ -339,7 +339,7 @@ g_base64_decode_step (const gchar *in,
|
||||
g_return_val_if_fail (state != NULL, 0);
|
||||
g_return_val_if_fail (save != NULL, 0);
|
||||
|
||||
if (len <= 0)
|
||||
if (len == 0)
|
||||
return 0;
|
||||
|
||||
inend = (const guchar *)in+len;
|
||||
|
Loading…
Reference in New Issue
Block a user