diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-06-09 21:06:19 +0800 |
---|---|---|
committer | Jeremy Katz <katzj@src.gnome.org> | 2003-06-09 21:06:19 +0800 |
commit | bd01d60a9404d63f2437ee868036187762b1983f (patch) | |
tree | 32dae2564d3c4bb18129e6c038a9b10e8aa39918 | |
parent | a12c0af2690628f079a16dd86e3e234a0fdcfb29 (diff) | |
download | gsoc2013-epiphany-bd01d60a9404d63f2437ee868036187762b1983f.tar gsoc2013-epiphany-bd01d60a9404d63f2437ee868036187762b1983f.tar.gz gsoc2013-epiphany-bd01d60a9404d63f2437ee868036187762b1983f.tar.bz2 gsoc2013-epiphany-bd01d60a9404d63f2437ee868036187762b1983f.tar.lz gsoc2013-epiphany-bd01d60a9404d63f2437ee868036187762b1983f.tar.xz gsoc2013-epiphany-bd01d60a9404d63f2437ee868036187762b1983f.tar.zst gsoc2013-epiphany-bd01d60a9404d63f2437ee868036187762b1983f.zip |
Use va_copy for the valist instead of directly accessing it. va_list is
2003-06-09 Jeremy Katz <katzj@redhat.com>
* lib/ephy-node.c (callback): Use va_copy for the valist instead of
directly accessing it. va_list is implemented as an array on some
platforms (eg, AMD64).
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/ephy-node.c | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2003-06-09 Jeremy Katz <katzj@redhat.com> + + * lib/ephy-node.c (callback): Use va_copy for the valist instead of + directly accessing it. va_list is implemented as an array on some + platforms (eg, AMD64). + 2003-06-08 Jeremy Katz <katzj@redhat.com> * lib/egg/egg-menu-merge.h (egg_menu_merge_add_ui_from_string): diff --git a/lib/ephy-node.c b/lib/ephy-node.c index e88cb13ce..ed2b20e7b 100644 --- a/lib/ephy-node.c +++ b/lib/ephy-node.c @@ -115,11 +115,13 @@ int_hash (gconstpointer a) static void callback (long id, EphyNodeSignalData *data, gpointer *user_data) { - va_list valist = (va_list) user_data[0]; + va_list valist; EphyNodeSignalType type = GPOINTER_TO_INT (user_data[1]); if (data->type != type) return; + va_copy(valist, user_data[0]); + switch (data->type) { case EPHY_NODE_DESTROY: |