summaryrefslogtreecommitdiff
path: root/sim/param.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/param.cc')
-rw-r--r--sim/param.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/param.cc b/sim/param.cc
index d16578a2d..ff023ce85 100644
--- a/sim/param.cc
+++ b/sim/param.cc
@@ -441,6 +441,11 @@ EnumVectorParam<Map>::parse(const string &s)
{
vector<string> tokens;
+ if (s.empty()) {
+ wasSet = true;
+ return;
+ }
+
tokenize(tokens, s, ' ');
value.resize(tokens.size());