diff options
author | Padraig O'Briain <padraigo@src.gnome.org> | 2001-10-22 07:25:09 +0000 |
---|---|---|
committer | Padraig O'Briain <padraigo@src.gnome.org> | 2001-10-22 07:25:09 +0000 |
commit | d2762c3b46bd8c7a49fa278014ad1a18956a1dfc (patch) | |
tree | 3e1d6aac6a7a4b2a150b4f940f7cd09e60e866a4 /atk | |
parent | 99cba49f4016651d2a70a868e224cd900456a594 (diff) | |
download | atk-d2762c3b46bd8c7a49fa278014ad1a18956a1dfc.tar.gz |
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.
Diffstat (limited to 'atk')
-rwxr-xr-x | atk/atkobject.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |