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

Fix uninitialized value
Merge remote-tracking branch 'upstream/master' into features_loop_recorder