openbsd-ports/x11/dbus-glib/patches/patch-dbus_dbus-gvalue_c

20 lines
663 B
Plaintext
Raw Normal View History

2010-03-20 12:55:56 -04:00
$OpenBSD: patch-dbus_dbus-gvalue_c,v 1.2 2010/03/20 16:55:56 ajacoutot Exp $
2009-11-09 05:00:20 -05:00
fixes compile on gcc2.95 arches
2010-03-20 12:55:56 -04:00
--- 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,
2009-11-09 05:00:20 -05:00
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);