diff options
author | lloyd <[email protected]> | 2009-10-06 16:32:43 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-10-06 16:32:43 +0000 |
commit | f6546e0ffc4d9fda308e8e043446d1940f533140 (patch) | |
tree | d4f8ffbdd809b01d77f7dba60d469678a1a365dc | |
parent | aea376790ba658b267aa9b1d5decf5735a7f727d (diff) |
Fix mode name parsing
-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, '/'); |