Merge branch 'wip/hadess/check-g_variant_get-args' into 'master'

gvariant: Add guard to g_variant_get()

See merge request GNOME/glib!1269
This commit is contained in:
Philip Withnall 2019-12-05 09:29:02 +00:00
commit f3de395812

View File

@ -5434,6 +5434,7 @@ g_variant_get (GVariant *value,
{
va_list ap;
g_return_if_fail (value != NULL);
g_return_if_fail (valid_format_string (format_string, TRUE, value));
/* if any direct-pointer-access formats are in use, flatten first */