DBG: Fix uninitialized variable in varfree() call
This commit is contained in:
parent
1cb2217a7a
commit
4f1ba7b041
|
@ -99,6 +99,7 @@ void varfree()
|
||||||
// Each variable must be deleted manually; strings especially
|
// Each variable must be deleted manually; strings especially
|
||||||
// because there are sub-allocations
|
// because there are sub-allocations
|
||||||
VAR_VALUE emptyValue;
|
VAR_VALUE emptyValue;
|
||||||
|
memset(&emptyValue, 0, sizeof(VAR_VALUE));
|
||||||
|
|
||||||
for(auto & itr : variables)
|
for(auto & itr : variables)
|
||||||
varsetvalue(&itr.second, &emptyValue);
|
varsetvalue(&itr.second, &emptyValue);
|
||||||
|
|
Loading…
Reference in New Issue