aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-06 16:32:43 +0000
committerlloyd <[email protected]>2009-10-06 16:32:43 +0000
commitf6546e0ffc4d9fda308e8e043446d1940f533140 (patch)
treed4f8ffbdd809b01d77f7dba60d469678a1a365dc
parentaea376790ba658b267aa9b1d5decf5735a7f727d (diff)
Fix mode name parsing
-rw-r--r--src/libstate/scan_name.cpp2
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, '/');