openbsd-ports/x11/dbus-glib/patches/patch-dbus_dbus-gvalue_c
2011-10-16 06:45:18 +00:00

20 lines
663 B
Plaintext

$OpenBSD: patch-dbus_dbus-gvalue_c,v 1.5 2011/10/16 06:45:18 ajacoutot Exp $
Fixes compile on gcc2.95 archs.
--- dbus/dbus-gvalue.c.orig Wed Jun 1 18:29:39 2011
+++ dbus/dbus-gvalue.c Fri Jun 3 18:37:46 2011
@@ -835,10 +835,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);