From 2ff1f8128033b683ff6f23e27163a9ef751c669b Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 3 Feb 2014 15:10:48 +0000 Subject: [PATCH] better goto. git-svn-id: file:///svn/unbound/trunk@3068 be551aaa-1e26-0410-a405-d3ace91eadb9 --- ldns/str2wire.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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') { -- 2.47.2