From 612633b4e20ec74ea6416ddcf1e29bb8038963e7 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Fri, 14 Nov 2014 10:51:56 +0100 Subject: [PATCH] elocation: Check for one more retrun of eldbus_message_iter_arguments_get In this case we want to continue with the loop. CID: 1251472 --- src/lib/elocation/elocation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) while (eldbus_message_iter_get_and_next(dict, 'e', &entry)) { - eldbus_message_iter_arguments_get(entry, "ss", &key, &value); + if (!eldbus_message_iter_arguments_get(entry, "ss", &key, &value)) + continue; if (!strcmp(key, "country")) {