diff options
author | Sebastian Geerken <devnull@localhost> | 2013-07-30 18:41:30 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-07-30 18:41:30 +0200 |
commit | ff6dc66d7ff225960cb52fb6df95461bcec9f0d4 (patch) | |
tree | 758f9a2e55b2c48e3ef9b4cec89dd0402209c734 /src/url.c | |
parent | 97b54265687beaddd0b588b18994c68fe770a7d5 (diff) | |
parent | 0d0e61f454008dc27d49a3b6a5f1a97f9f81297a (diff) |
Merge with main repo.
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -263,7 +263,7 @@ static Dstr *Url_resolve_relative(const char *RelStr, } else if (BaseUrl->path) { /* relative path */ dStr_append(Path, BaseUrl->path); for (i = Path->len; --i >= 0 && Path->str[i] != '/'; ) ; - if (Path->str[i] == '/') + if (i >= 0 && Path->str[i] == '/') dStr_truncate(Path, ++i); } if (RelUrl->path) |