mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 02:47:52 +02:00
gdbus: actually return string length from hexdecode()
https://bugzilla.gnome.org/show_bug.cgi?id=794170
This commit is contained in:
committed by
Philip Withnall
parent
8e315bd8ae
commit
f7c0ff773e
@@ -404,13 +404,17 @@ hexdecode (const gchar *str,
|
||||
g_string_append_c (s, value);
|
||||
}
|
||||
|
||||
*out_len = s->len;
|
||||
ret = g_string_free (s, FALSE);
|
||||
s = NULL;
|
||||
|
||||
out:
|
||||
if (s != NULL)
|
||||
g_string_free (s, TRUE);
|
||||
return ret;
|
||||
{
|
||||
*out_len = 0;
|
||||
g_string_free (s, TRUE);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* TODO: take len */
|
||||
|
Reference in New Issue
Block a user