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 4f9d0a577..84ecbf8f9 100644
--- a/sim/param.cc
+++ b/sim/param.cc
@@ -211,6 +211,11 @@ template <class T>
void
VectorParam<T>::parse(const string &s)
{
+ if (s.empty()) {
+ wasSet = true;
+ return;
+ }
+
vector<string> tokens;
tokenize(tokens, s, ' ');