diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-23 07:43:33 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-23 07:43:33 +0100 |
| commit | 2df1f3eff0e81ec3446ddac750ce88da83258cce (patch) | |
| tree | 0a3e72b8389b85f92e6dc5932d9463a83f963dc9 /lib | |
| parent | eae3199e4adc0e92a65f48293b1369c1d8c375bc (diff) | |
| download | abrt-2df1f3eff0e81ec3446ddac750ce88da83258cce.tar.gz abrt-2df1f3eff0e81ec3446ddac750ce88da83258cce.tar.xz abrt-2df1f3eff0e81ec3446ddac750ce88da83258cce.zip | |
cli: add support for "--report @N" and "--report PARTIAL_UUID"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Utils/abrt_dbus.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<K,V>& 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; } |
