diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2014-11-14 10:51:56 +0100 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2014-11-14 10:51:56 +0100 |
commit | 612633b4e20ec74ea6416ddcf1e29bb8038963e7 (patch) | |
tree | b5bf3d11de8a06fba8765bf354fda389667eb160 /src/lib/elocation/elocation.c | |
parent | d896dfb34233ac6bb0b1cb226f50180783dc5961 (diff) |
elocation: Check for one more retrun of eldbus_message_iter_arguments_get
In this case we want to continue with the loop.
CID: 1251472
Diffstat (limited to '')
-rw-r--r-- | src/lib/elocation/elocation.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elocation/elocation.c b/src/lib/elocation/elocation.c index 6cc5af051e..7583fabe1a 100644 --- a/src/lib/elocation/elocation.c +++ b/src/lib/elocation/elocation.c | |||
@@ -210,7 +210,8 @@ unmarshall_address(const Eldbus_Message *reply, Elocation_Address *addr) | |||
210 | 210 | ||
211 | while (eldbus_message_iter_get_and_next(dict, 'e', &entry)) | 211 | while (eldbus_message_iter_get_and_next(dict, 'e', &entry)) |
212 | { | 212 | { |
213 | eldbus_message_iter_arguments_get(entry, "ss", &key, &value); | 213 | if (!eldbus_message_iter_arguments_get(entry, "ss", &key, &value)) |
214 | continue; | ||
214 | 215 | ||
215 | if (!strcmp(key, "country")) | 216 | if (!strcmp(key, "country")) |
216 | { | 217 | { |