diff --git a/src/rcldb/searchdata.cpp b/src/rcldb/searchdata.cpp index a3127907..afc9578a 100644 --- a/src/rcldb/searchdata.cpp +++ b/src/rcldb/searchdata.cpp @@ -291,7 +291,8 @@ bool SearchData::toNativeQuery(Rcl::Db &db, void *d) vector vpath; stringToTokens(m_topdir, vpath, "/"); vector pvpath; - pvpath.push_back(pathelt_prefix); + if (m_topdir[0] == '/') + pvpath.push_back(pathelt_prefix); for (vector::const_iterator it = vpath.begin(); it != vpath.end(); it++){ pvpath.push_back(pathelt_prefix + *it);