1
0
Fork 0

DBG: Fix uninitialized variable in varfree() call

This commit is contained in:
Nukem 2015-07-12 00:20:31 -04:00
parent 1cb2217a7a
commit 4f1ba7b041
1 changed files with 1 additions and 0 deletions

View File

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