css: Avoid an uninitialized GValue

One of the confusing aspects of GOBject. When we say
'an uninitialized GValue', we mean one that is declared
via GValue v = G_VALUE_INIT;

Fixes: #6655
This commit is contained in:
Matthias Clasen 2024-04-24 07:17:24 -04:00
parent 0759e84951
commit 5c3d176c00

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);