rtkit/rtkit-0.12-arm-revert-unsupported-asm-2.patch.patch

32 lines
1.3 KiB
Diff

From a32fc5956038b1916008416c27f87b59b8caf8c4 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Wed, 13 Feb 2019 19:31:09 +0100
Subject: [PATCH] rtkit-daemon: Restore local `xml` variable
This one has to exist so we can have the pointer to pointer, as
`introspect_xml` is an array.
Fixes 14099ed04a693791dc6645566ee55a08be19a199 (a SIGSEGV)
---
rtkit-daemon.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/rtkit-daemon.c b/rtkit-daemon.c
index 6884644..c56ddcb 100644
--- a/rtkit-daemon.c
+++ b/rtkit-daemon.c
@@ -1417,10 +1417,12 @@ static DBusHandlerResult dbus_handler(DBusConnection *c, DBusMessage *m, void *u
interface));
} else if (dbus_message_is_method_call(m, "org.freedesktop.DBus.Introspectable", "Introspect")) {
+ const char *xml = introspect_xml;
+
assert_se(r = dbus_message_new_method_return(m));
assert_se(dbus_message_append_args(
r,
- DBUS_TYPE_STRING, &introspect_xml,
+ DBUS_TYPE_STRING, &xml,
DBUS_TYPE_INVALID));
} else
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;