diff --git a/src/indexer.cpp b/src/indexer.cpp index 7d86c5e..04ed07c 100644 --- a/src/indexer.cpp +++ b/src/indexer.cpp @@ -206,9 +206,9 @@ namespace din { } void Indexer::calculate_hash() { + PathName base_path(m_local_data->paths.front().path); #if !defined(NDEBUG) std::sort(m_local_data->paths.begin(), m_local_data->paths.end()); - PathName base_path(m_local_data->paths.front().path); for (auto& itm : m_local_data->paths) { itm.hash.part_a = 1; itm.hash.part_b = 1; diff --git a/src/main.cpp b/src/main.cpp index 3db2729..a12e380 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -49,6 +49,5 @@ int main (int parArgc, char* parArgv[]) { searcher.Search(ext, ignore); indexer.calculate_hash(); - indexer.dump(); return 0; }