From: Padraig O'Briain Date: Mon, 22 Oct 2001 07:25:09 +0000 (+0000) Subject: Initialize AtkPropertyValue data structure to 0 instead of using memset. X-Git-Tag: ATK_0_6~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2762c3b46bd8c7a49fa278014ad1a18956a1dfc;p=platform%2Fupstream%2Fatk.git Initialize AtkPropertyValue data structure to 0 instead of using memset. * atk/atkobject.c (atk_object_notify_state_change): Initialize AtkPropertyValue data structure to 0 instead of using memset. --- diff --git a/ChangeLog b/ChangeLog index a48ba04..1499d7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-10-22 Padraig O'Briain + + * atk/atkobject.c (atk_object_notify_state_change): + Initialize AtkPropertyValue data structure to 0 instead of using + memset. + 2001-10-19 Tor Lillqvist * configure.in: Set automake conditionals OS_WIN32 if on (native) diff --git a/atk/atkobject.c b/atk/atkobject.c index 9e1346c..092cc39 100755 --- a/atk/atkobject.c +++ b/atk/atkobject.c @@ -1013,10 +1013,8 @@ static void atk_object_notify (GObject *obj, GParamSpec *pspec) { - AtkPropertyValues values; + AtkPropertyValues values = { 0, }; - memset (&values.old_value, 0, sizeof (GValue)); - memset (&values.new_value, 0, sizeof (GValue)); g_value_init (&values.new_value, pspec->value_type); g_object_get_property(obj, pspec->name, &values.new_value); values.property_name = pspec->name;