[gtk/wip/baedert/for-master: 1/2] builder: NULL initizalize out values




commit a3b949034bf7e73caecaa3e59ed999ad3fe46ef6
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 22 19:36:45 2021 +0200

    builder: NULL initizalize out values

 gtk/gtkbuilder.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
index ed90fd7b99..6444409344 100644
--- a/gtk/gtkbuilder.c
+++ b/gtk/gtkbuilder.c
@@ -532,7 +532,16 @@ gtk_builder_get_parameters (GtkBuilder         *builder,
   GError *error = NULL;
 
   if (!properties)
-    return;
+    {
+      parameters->names = NULL;
+      parameters->values = NULL;
+      if (filtered_parameters)
+        {
+          filtered_parameters->names = NULL;
+          filtered_parameters->values = NULL;
+        }
+      return;
+    }
 
   for (guint i = 0; i < properties->len; i++)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]