]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
better goto.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 3 Feb 2014 15:10:48 +0000 (15:10 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 3 Feb 2014 15:10:48 +0000 (15:10 +0000)
git-svn-id: file:///svn/unbound/trunk@3068 be551aaa-1e26-0410-a405-d3ace91eadb9

ldns/str2wire.c

index 0620328a42a79ae2359bf114cc91bbc023789d6c..60b0b88c8c70c9836804733ac4e3b7555d59094a 100644 (file)
@@ -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') {