aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Uri.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Uri.cpp b/src/Uri.cpp
index 35631cf..309ce88 100644
--- a/src/Uri.cpp
+++ b/src/Uri.cpp
@@ -759,7 +759,9 @@ namespace Uri {
&& (oldPath[1] == "..")
) {
oldPath.erase(oldPath.begin() + 1);
- impl_->path.pop_back();
+ if (!impl_->path.empty()) {
+ impl_->path.pop_back();
+ }
} else
// Step 2D