aboutsummaryrefslogtreecommitdiff
path: root/brep/repository-details.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'brep/repository-details.cxx')
-rw-r--r--brep/repository-details.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/brep/repository-details.cxx b/brep/repository-details.cxx
index b8a2e5b..86a6099 100644
--- a/brep/repository-details.cxx
+++ b/brep/repository-details.cxx
@@ -50,7 +50,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 ());
xml::serializer s (rs.content (), "About");
const string& title (s.output_name ());