diff options
Diffstat (limited to 'utils/nsurl.c')
-rw-r--r-- | utils/nsurl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/nsurl.c b/utils/nsurl.c index e0e147229..4454ba8a1 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -963,7 +963,7 @@ static nserror nsurl__create_from_section(const char * const url_s, flags |= NSURL_F_NO_PORT; } - if (length - (colon - pegs->at + skip) <= 0) { + if (length <= (colon - pegs->at + skip)) { /* No space for a port after the colon */ flags |= NSURL_F_NO_PORT; |