mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-12 20:36:15 +01:00
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 <withnall@endlessm.com>
This commit is contained in:
parent
387e762879
commit
2484d1c950
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user