Initialize AtkPropertyValue data structure to 0 instead of using memset.
authorPadraig O'Briain <padraigo@src.gnome.org>
Mon, 22 Oct 2001 07:25:09 +0000 (07:25 +0000)
committerPadraig O'Briain <padraigo@src.gnome.org>
Mon, 22 Oct 2001 07:25:09 +0000 (07:25 +0000)
* atk/atkobject.c (atk_object_notify_state_change):
Initialize AtkPropertyValue data structure to 0 instead of using
memset.

ChangeLog
atk/atkobject.c

index a48ba04..1499d7e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-22  Padraig O'Briain  <padraig.obriain@sun.com>
+
+       * atk/atkobject.c (atk_object_notify_state_change):
+       Initialize AtkPropertyValue data structure to 0 instead of using
+       memset.
+
 2001-10-19  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in: Set automake conditionals OS_WIN32 if on (native)
index 9e1346c..092cc39 100755 (executable)
@@ -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;