20 lines
663 B
Plaintext
20 lines
663 B
Plaintext
$OpenBSD: patch-dbus_dbus-gvalue_c,v 1.3 2010/12/13 10:41:41 ajacoutot Exp $
|
|
|
|
fixes compile on gcc2.95 arches
|
|
|
|
--- dbus/dbus-gvalue.c.orig Mon Nov 8 05:44:45 2010
|
|
+++ dbus/dbus-gvalue.c Mon Dec 13 11:10:58 2010
|
|
@@ -838,10 +838,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);
|