diff options
-rw-r--r-- | src/libstate/scan_name.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstate/scan_name.cpp b/src/libstate/scan_name.cpp index 13792720c..bdafde225 100644 --- a/src/libstate/scan_name.cpp +++ b/src/libstate/scan_name.cpp @@ -55,7 +55,7 @@ SCAN_Name::SCAN_Name(const std::string& algo_spec) name.clear(); } - if(name.size() == 0 && algo_spec.find('/') != std::string::npos) + if(name.size() <= 1 && algo_spec.find('/') != std::string::npos) { std::vector<std::string> algo_parts = split_on(algo_spec, '/'); |