fixed two valgrind warnings while saving lua state
This commit is contained in:
parent
b584ef5f21
commit
223ba3078a
2 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ void lua_Save(SaveRestoreFunc saveFunc) {
|
|||
saveFunc(&tempHash->htag, sizeof(int32));
|
||||
for (i = 0; i < tempHash->nhash; i++) {
|
||||
Node *newNode = &tempHash->node[i];
|
||||
if ((newNode->val.ttype != LUA_T_NIL) && (newNode->ref.ttype != LUA_T_NIL)) {
|
||||
if ((newNode->ref.ttype != LUA_T_NIL) && (newNode->val.ttype != LUA_T_NIL)) {
|
||||
saveObjectValue(&tempHash->node[i].ref, saveFunc);
|
||||
saveObjectValue(&tempHash->node[i].val, saveFunc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue