Commit 2484d1c9 authored by Philip Withnall's avatar Philip Withnall

gbase64: Remove an unnecessary condition

At that point in the code, len can only be 0, 1 or 2. The code below is
a no-op if (len == 0), so the condition is pointless.

Remove it, and we should be able to achieve full branch coverage of
gbase64.c.

This should introduce no functional changes.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
parent 387e7628
......@@ -160,7 +160,8 @@ g_base64_encode_step (const guchar *in,
*state = already;
}
if (len>0)
g_assert (len == 0 || len == 1 || len == 2);
{
char *saveout;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment