From 5c3d176c0010078c06312c8750086353ec1e2d37 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 24 Apr 2024 07:17:24 -0400 Subject: [PATCH] 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 --- gtk/gtkcssshorthandpropertyimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcssshorthandpropertyimpl.c b/gtk/gtkcssshorthandpropertyimpl.c index fdef01ca66..c0646dc000 100644 --- a/gtk/gtkcssshorthandpropertyimpl.c +++ b/gtk/gtkcssshorthandpropertyimpl.c @@ -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);