aboutsummaryrefslogtreecommitdiff
path: root/brep/package-version-details.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'brep/package-version-details.cxx')
-rw-r--r--brep/package-version-details.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/brep/package-version-details.cxx b/brep/package-version-details.cxx
index d00c10a..a1fe017 100644
--- a/brep/package-version-details.cxx
+++ b/brep/package-version-details.cxx
@@ -54,7 +54,10 @@ namespace brep
// The module options object is not changed after being created once per
// server process.
//
- static const dir_path& rt (options_->root ());
+ static const dir_path& rt (
+ options_->root ().empty ()
+ ? dir_path ("/")
+ : options_->root ());
auto i (rq.path ().rbegin ());
version v;