diff options
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/serialize.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/serialize.cc b/src/sim/serialize.cc index d6d5ac094..aa343d0e9 100644 --- a/src/sim/serialize.cc +++ b/src/sim/serialize.cc @@ -269,7 +269,7 @@ arrayParamIn(Checkpoint *cp, const string §ion, const string &name, // for which operator[] returns a special reference class // that's not the same as 'bool&', (since it's a packed // vector) - T scalar_value; + T scalar_value = 0; if (!parseParam(tokens[i], scalar_value)) { string err("could not parse \""); @@ -311,7 +311,7 @@ arrayParamIn(Checkpoint *cp, const string §ion, // for which operator[] returns a special reference class // that's not the same as 'bool&', (since it's a packed // vector) - T scalar_value; + T scalar_value = 0; if (!parseParam(tokens[i], scalar_value)) { string err("could not parse \""); |