stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=612633b4e20ec74ea6416ddcf1e29bb8038963e7

commit 612633b4e20ec74ea6416ddcf1e29bb8038963e7
Author: Stefan Schmidt <[email protected]>
Date:   Fri Nov 14 10:51:56 2014 +0100

    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 6cc5af0..7583fab 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"))
          {

-- 


Reply via email to