aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/utils/scan_name.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/scan_name.cpp b/src/utils/scan_name.cpp
index e32110740..f5a1a9245 100644
--- a/src/utils/scan_name.cpp
+++ b/src/utils/scan_name.cpp
@@ -47,6 +47,9 @@ SCAN_Name::SCAN_Name(const std::string& algo_spec,
m_provider = provider;
name = parse_and_deref_aliases(algo_spec);
+
+ if(name.size() == 0)
+ throw Decoding_Error("Bad SCAN name " + algo_spec);
}
SCAN_Name SCAN_Name::arg(u32bit i) const