aboutsummaryrefslogtreecommitdiff
path: root/brep/package-search.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-16 19:06:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-16 19:06:27 +0200
commit1f3774634b122e4ace102c8643f6d9281e3a20de (patch)
tree1eb2df333c9cd78581ab8840c508036b6aabb565 /brep/package-search.cxx
parentd5b0b7b1d099125bf6f86b2e49acdbf2e6625beb (diff)
Make root configuration option notation to be the same as of AP_ROOT configuration variable
Diffstat (limited to 'brep/package-search.cxx')
-rw-r--r--brep/package-search.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/brep/package-search.cxx b/brep/package-search.cxx
index 1617e58..6a349b0 100644
--- a/brep/package-search.cxx
+++ b/brep/package-search.cxx
@@ -65,7 +65,10 @@ namespace brep
// server process.
//
static const size_t rp (options_->results_on_page ());
- static const dir_path& rt (options_->root ());
+ static const dir_path& rt (
+ options_->root ().empty ()
+ ? dir_path ("/")
+ : options_->root ());
params::package_search pr;