found by travis

This commit is contained in:
Jan-Piet Mens
2018-05-04 09:41:19 +02:00
parent 8d36de816a
commit c20d6a3158
-3
View File
@@ -206,7 +206,6 @@ static int opencage_decode(UT_string *geodata, UT_string *addr, UT_string *cc, U
*/
JsonNode *j;
int have_cc = 0, have_locality = 0;
if ((j = json_find_member(ac, "country_code")) != NULL) {
if (j->tag == JSON_STRING) {
@@ -218,14 +217,12 @@ static int opencage_decode(UT_string *geodata, UT_string *addr, UT_string *cc, U
utstring_printf(cc, "%c", ch);
++bp;
}
have_cc = 1;
}
}
if ((j = json_find_member(ac, "city")) != NULL) {
if (j->tag == JSON_STRING) {
utstring_printf(locality, "%s", j->string_);
have_locality = 1;
}
}
}