diff --git a/glib/gvariant.c b/glib/gvariant.c index d7ec8dc70..ee1a9c020 100644 --- a/glib/gvariant.c +++ b/glib/gvariant.c @@ -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 */