diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-10-11 11:24:13 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-10-11 11:31:15 +0200 |
commit | 2281d4fac9fec97993b0a6dc0e2ec42911eac194 (patch) | |
tree | 956dac2e206ebeddf781db3cdd6aaaa08da9a0e5 | |
parent | 2ab19ab1a99aa75cecb181ea62c0934bcd0f3c71 (diff) | |
download | obexd-2281d4fac9fec97993b0a6dc0e2ec42911eac194.tar.gz |
client: Fix returning empty if messages was already listed
Once a message was already listed and inserted on the cache it could
not be listed again as the code was using the wrong key to lookup for
found messages then once we try to create the message again it fails
as the object already exists.
-rw-r--r-- | client/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/map.c b/client/map.c index 46b787d..dc72e4b 100644 --- a/client/map.c +++ b/client/map.c @@ -808,7 +808,7 @@ static void msg_element(GMarkupParseContext *ctxt, const gchar *element, break; } - msg = g_hash_table_lookup(data->messages, key); + msg = g_hash_table_lookup(data->messages, values[i]); if (msg == NULL) { msg = map_msg_create(data, values[i]); if (msg == NULL) |