aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-07-04 03:50:25 +0800
committerJeremy Katz <katzj@src.gnome.org>2003-07-04 03:50:25 +0800
commit6e61a1fde9793d4a9520a894cda4765dd8a2e292 (patch)
treee209d5260a8cae9022c04bb659c9d318492907bf /lib
parent481bbe19eab224eb95d18278ee70c550773c9251 (diff)
downloadgsoc2013-epiphany-6e61a1fde9793d4a9520a894cda4765dd8a2e292.tar
gsoc2013-epiphany-6e61a1fde9793d4a9520a894cda4765dd8a2e292.tar.gz
gsoc2013-epiphany-6e61a1fde9793d4a9520a894cda4765dd8a2e292.tar.bz2
gsoc2013-epiphany-6e61a1fde9793d4a9520a894cda4765dd8a2e292.tar.lz
gsoc2013-epiphany-6e61a1fde9793d4a9520a894cda4765dd8a2e292.tar.xz
gsoc2013-epiphany-6e61a1fde9793d4a9520a894cda4765dd8a2e292.tar.zst
gsoc2013-epiphany-6e61a1fde9793d4a9520a894cda4765dd8a2e292.zip
Must use va_copy when assigning valist on arches where varargs are
2003-07-03 Jeremy Katz <katzj@redhat.com> * lib/ephy-node.c (callback): Must use va_copy when assigning valist on arches where varargs are implemented as an array type (such as AMD64)
Diffstat (limited to 'lib')
-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 b9bce2d33..14b4bb1e4 100644
--- a/lib/ephy-node.c
+++ b/lib/ephy-node.c
@@ -126,7 +126,7 @@ callback (long id, EphyNodeSignalData *data, gpointer *dummy)
user_data = (ENESCData *) dummy;
- valist = user_data->valist;
+ va_copy(valist, user_data->valist);
if (data->type != user_data->type) return;
@@ -158,6 +158,8 @@ callback (long id, EphyNodeSignalData *data, gpointer *dummy)
data->callback (data->node, va_arg (valist, int *), data->data);
break;
}
+
+ va_end(valist);
}
static void