summaryrefslogtreecommitdiff
path: root/gobject/gparam.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2000-07-13 00:09:56 +0000
committerTim Janik <timj@src.gnome.org>2000-07-13 00:09:56 +0000
commit90784da01b4ae45814fbf9ce24c56561be3a4573 (patch)
treeff0516e4edcb164185b4bd604c1efbcae452979f /gobject/gparam.c
parentc38d1dd9e9eeec9a997ea78c3aefb2e5bcaa7ac6 (diff)
default initialize the temporary default value, instead of nuking the
Thu Jul 13 02:07:54 2000 Tim Janik <timj@gtk.org> * gparam.c (g_param_value_defaults): default initialize the temporary default value, instead of nuking the caller's value contents.
Diffstat (limited to 'gobject/gparam.c')
-rw-r--r--gobject/gparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/gparam.c b/gobject/gparam.c
index 7d0199ef8..b35c407a5 100644
--- a/gobject/gparam.c
+++ b/gobject/gparam.c
@@ -222,7 +222,7 @@ g_param_value_defaults (GParamSpec *pspec,
g_return_val_if_fail (G_IS_PARAM_VALUE (pspec, value), FALSE);
g_value_init (&dflt_value, G_PARAM_SPEC_VALUE_TYPE (pspec));
- G_PARAM_SPEC_GET_CLASS (pspec)->value_set_default (pspec, value);
+ G_PARAM_SPEC_GET_CLASS (pspec)->value_set_default (pspec, &dflt_value);
defaults = G_PARAM_SPEC_GET_CLASS (pspec)->values_cmp (pspec, value, &dflt_value) == 0;
g_value_unset (&dflt_value);