summaryrefslogtreecommitdiff
path: root/src/url.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/url.cc')
-rw-r--r--src/url.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/url.cc b/src/url.cc
index b4e6c0f..63419ba 100644
--- a/src/url.cc
+++ b/src/url.cc
@@ -284,6 +284,10 @@ bool UrlImpl::relative(std::string const& url, Url const* base) {
path-empty = 0<pchar>
*/
start = pos;
+ } else {
+ // cannot happen
+ assert(false);
+ start = pos;
}
while (true) {
if (is_unreserved(*pos)) {