aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-node.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-06-09 21:06:19 +0800
committerJeremy Katz <katzj@src.gnome.org>2003-06-09 21:06:19 +0800
commitbd01d60a9404d63f2437ee868036187762b1983f (patch)
tree32dae2564d3c4bb18129e6c038a9b10e8aa39918 /lib/ephy-node.c
parenta12c0af2690628f079a16dd86e3e234a0fdcfb29 (diff)
downloadgsoc2013-epiphany-bd01d60a9404d63f2437ee868036187762b1983f.tar.gz
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).
Diffstat (limited to 'lib/ephy-node.c')
-rw-r--r--lib/ephy-node.c4
1 files changed, 3 insertions, 1 deletions
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: