openbsd-ports/x11/dbus-glib/patches/patch-dbus_dbus-gvalue_c
2010-03-20 16:55:56 +00:00

20 lines
663 B
Plaintext

$OpenBSD: patch-dbus_dbus-gvalue_c,v 1.2 2010/03/20 16:55:56 ajacoutot Exp $
fixes compile on gcc2.95 arches
--- dbus/dbus-gvalue.c.orig Wed Jan 27 19:46:40 2010
+++ dbus/dbus-gvalue.c Sun Jan 31 09:24:25 2010
@@ -802,10 +802,11 @@ demarshal_strv (DBusGValueMarshalCtx *context,
while ((current_type = dbus_message_iter_get_arg_type (&subiter)) != DBUS_TYPE_INVALID)
{
- g_assert (current_type == DBUS_TYPE_STRING);
const char *str;
char *copy;
+ g_assert (current_type == DBUS_TYPE_STRING);
+
dbus_message_iter_get_basic (&subiter, &str);
copy = g_strdup (str);
g_array_append_val (arr, copy);