Index: third_party/libxml/src/uri.c |
diff --git a/third_party/libxml/src/uri.c b/third_party/libxml/src/uri.c |
index 3e51255e61cd85a79eb4955dffea496d09f3c687..2bd5720de97ca09277141be181d05ff2fe1a2e5a 100644 |
--- a/third_party/libxml/src/uri.c |
+++ b/third_party/libxml/src/uri.c |
@@ -325,11 +325,12 @@ static int |
xmlParse3986Port(xmlURIPtr uri, const char **str) |
{ |
const char *cur = *str; |
+ unsigned port = 0; /* unsigned for defined overflow behavior */ |
if (ISA_DIGIT(cur)) { |
- unsigned port = 0; /* unsigned for defined overflow behavior */ |
while (ISA_DIGIT(cur)) { |
port = port * 10 + (*cur - '0'); |
+ |
cur++; |
} |
if (uri != NULL) |