From: Wouter Wijngaards Date: Mon, 3 Feb 2014 15:10:48 +0000 (+0000) Subject: better goto. X-Git-Tag: release-1.4.22rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ff1f8128033b683ff6f23e27163a9ef751c669b;p=thirdparty%2Funbound.git better goto. git-svn-id: file:///svn/unbound/trunk@3068 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/ldns/str2wire.c b/ldns/str2wire.c index 0620328a4..60b0b88c8 100644 --- a/ldns/str2wire.c +++ b/ldns/str2wire.c @@ -1418,11 +1418,13 @@ int sldns_str2wire_loc_buf(const char* str, uint8_t* rd, size_t* len) if (isdigit((int) *my_str)) { s = strtod(my_str, &my_str); } -north: + + /* skip blanks before norterness */ while (isblank((int) *my_str)) { my_str++; } +north: if (*my_str == 'N') { northerness = 1; } else if (*my_str == 'S') { @@ -1475,11 +1477,12 @@ north: s = strtod(my_str, &my_str); } -east: + /* skip blanks before easterness */ while (isblank(*my_str)) { my_str++; } +east: if (*my_str == 'E') { easterness = 1; } else if (*my_str == 'W') {