aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-node.c
diff options
context:
space:
mode:
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: