summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-02-28 22:18:25 +0100
committerJoel Klinghed <the_jk@yahoo.com>2017-02-28 22:18:49 +0100
commitb5143b28554608102d1ddce8aa08c37e11c858d8 (patch)
tree2cf5732c1b6bff3208e33b34cb0189b1c2aa2d59 /src
parente17f02543886c8c4bd8472984457de23035b34c6 (diff)
Workaround warning in GCC
Diffstat (limited to 'src')
-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)) {