summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/nsurl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/nsurl.c b/utils/nsurl.c
index 18577b65d..23e177e05 100644
--- a/utils/nsurl.c
+++ b/utils/nsurl.c
@@ -720,6 +720,9 @@ static nserror nsurl__create_from_section(const char * const url_s,
break;
}
+ if (end < start)
+ end = start;
+
length = end - start;
/* Stage 1: Normalise the required section */