diff options
author | Owen Fraser-Green <owen@discobabe.net> | 2004-05-01 19:59:58 +0000 |
---|---|---|
committer | Owen Fraser-Green <owen@discobabe.net> | 2004-05-01 19:59:58 +0000 |
commit | 3c6ef3df279344d3645009700f7a9c571f037bd2 (patch) | |
tree | a2cf0afaae7f2f6ae33c81ebfde4d61533ec8b16 /mono/DBusType/Dict.cs | |
parent | e16dafeb5fe958854953532a52eb959563495163 (diff) |
Handle empty iterators properly!
Diffstat (limited to 'mono/DBusType/Dict.cs')
-rw-r--r-- | mono/DBusType/Dict.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mono/DBusType/Dict.cs b/mono/DBusType/Dict.cs index e93d7d77..f5c76b4c 100644 --- a/mono/DBusType/Dict.cs +++ b/mono/DBusType/Dict.cs @@ -31,11 +31,11 @@ namespace DBus.DBusType { IntPtr dictIter = Marshal.AllocCoTaskMem(Arguments.DBusMessageIterSize); - bool empty = dbus_message_iter_init_dict_iterator(iter, dictIter); + bool notEmpty = dbus_message_iter_init_dict_iterator(iter, dictIter); this.val = new Hashtable(); - if (!empty) { + if (notEmpty) { do { string key = dbus_message_iter_get_dict_key(dictIter); |