Fix uninitialized value
Merge pull request #83 from ywwg/keylock-fixes

Fix uninitialized value