[glib/param-value-default: 4/4] tests: Do not init the default value



commit ca1dbb38d8b8213408add742b3f7461810f14a70
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Oct 26 14:06:31 2019 +0100

    tests: Do not init the default value
    
    The call to g_param_value_set_default() will do that for us, now.

 gio/tests/defaultvalue.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/gio/tests/defaultvalue.c b/gio/tests/defaultvalue.c
index 84a8635da..de0e9b104 100644
--- a/gio/tests/defaultvalue.c
+++ b/gio/tests/defaultvalue.c
@@ -29,7 +29,6 @@ check_property (const char *output,
   if (g_param_value_defaults (pspec, value))
       return;
 
-  g_value_init (&default_value, G_PARAM_SPEC_VALUE_TYPE (pspec));
   g_param_value_set_default (pspec, &default_value);
 
   v = g_strdup_value_contents (value);


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