Fix a small bug in parameter processing that would always result

in at least on entry in a VectorParam even if the string was
empty.

sim/param.cc:
    if there are no parameters, leave the vector empty.

--HG--
extra : convert_revision : d0d41baa8c77651a27ac6a4d02cc388711f47dbe
This commit is contained in:
Nathan Binkert
2004-08-17 11:19:04 -04:00
parent ac8b01db71
commit 239183cfe6

View File

@@ -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, ' ');