wok-current view dbus-c++/stuff/dbus-c++-0.9.0-copy_data_from_received_message.patch @ rev 25727
Add miss stuff folder for libxml++, dbus-c++
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Nov 05 13:46:37 2024 +0000 (4 weeks ago) |
parents | |
children |
line source
1 From 2a770f61c060d19f7fe118c2a066306fa3e9ec3d Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Th=C3=A9o=20Goudout?= <theo.goudout@mydatakeeper.fr>
3 Date: Thu, 1 Aug 2019 08:24:29 +0000
4 Subject: [PATCH] Fix assert fail when copying data from received message
6 ---
7 src/message.cpp | 4 +++-
8 1 file changed, 3 insertions(+), 1 deletion(-)
10 diff --git a/src/message.cpp b/src/message.cpp
11 index 3f0cac4..1c4caab 100644
12 --- a/src/message.cpp
13 +++ b/src/message.cpp
14 @@ -350,7 +350,9 @@ void MessageIter::copy_data(MessageIter &to)
15 (
16 (DBusMessageIter *) & (to._iter),
17 from.type(),
18 - from.type() == DBUS_TYPE_VARIANT ? NULL : sig,
19 + (from.type() == DBUS_TYPE_STRUCT || from.type() == DBUS_TYPE_DICT_ENTRY)
20 + ? NULL
21 + : sig,
22 (DBusMessageIter *) & (to_container._iter)
23 );
25 --
26 2.22.0