]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Use dbus provided version of va_copy().
authorRalf Habacker <ralf.habacker@freenet.de>
Mon, 6 Jan 2014 22:30:55 +0000 (23:30 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 7 Jan 2014 11:32:37 +0000 (11:32 +0000)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72840
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-message.c

index 32ac37a260bbd6ea2db138aa8ccfff62b8ca4b8d..c6953d0283073866491be991986c1fd30718607f 100644 (file)
@@ -812,7 +812,7 @@ _dbus_message_iter_get_args_valist (DBusMessageIter *iter,
   /* copy var_args first, then we can do another iteration over it to
    * free memory and close unix fds if parse failed at some point.
    */
-  va_copy (copy_args, var_args);
+  DBUS_VA_COPY (copy_args, var_args);
 
   while (spec_type != DBUS_TYPE_INVALID)
     {