diff --git a/glib/gbase64.c b/glib/gbase64.c index baddae098..ef6a39832 100644 --- a/glib/gbase64.c +++ b/glib/gbase64.c @@ -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;