From 2df1f3eff0e81ec3446ddac750ce88da83258cce Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 23 Feb 2010 07:43:33 +0100 Subject: cli: add support for "--report @N" and "--report PARTIAL_UUID" Signed-off-by: Denys Vlasenko --- lib/Utils/abrt_dbus.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/Utils/abrt_dbus.h b/lib/Utils/abrt_dbus.h index ffa4421..58a8d91 100644 --- a/lib/Utils/abrt_dbus.h +++ b/lib/Utils/abrt_dbus.h @@ -259,6 +259,9 @@ static int load_map(DBusMessageIter* iter, std::map& val) type = dbus_message_iter_get_arg_type(&sub_iter); if (type != DBUS_TYPE_DICT_ENTRY) { + /* When the map has 0 elements, we see DBUS_TYPE_INVALID (on the first iteration) */ + if (type == DBUS_TYPE_INVALID) + break; error_msg("sub_iter type is not DBUS_TYPE_DICT_ENTRY (%c)!", type); return -1; } -- cgit