Merge branch 'fix-gvalue-init-3-24' into 'gtk-3-24'

css: Avoid an uninitialized GValue

See merge request GNOME/gtk!7177
This commit is contained in:
Matthias Clasen 2024-04-24 12:05:13 +00:00
commit bb58c8a3fe

View File

@ -966,7 +966,7 @@ pack_border (GtkCssShorthandProperty *shorthand,
{
GtkCssStyleProperty *prop;
GtkBorder border;
GValue v;
GValue v = G_VALUE_INIT;
prop = _gtk_css_shorthand_property_get_subproperty (shorthand, 0);
_gtk_style_property_query (GTK_STYLE_PROPERTY (prop), &v, query_func, query_data);