core: Fix variable init and header include (#7626)
authorDrashna Jaelre <drashna@live.com>
Sat, 14 Dec 2019 12:00:09 +0000 (04:00 -0800)
committerJoel Challis <git@zvecr.com>
Sat, 14 Dec 2019 12:00:09 +0000 (12:00 +0000)
tmk backport from tmk/tmk_keyboard@325a99acd9c81f60519b6e594b2bf5d1e478ac56

quantum/keymap_common.c

index 5877273..c82c446 100644 (file)
@@ -48,7 +48,7 @@ action_t action_for_key(uint8_t layer, keypos_t key) {
     // keycode remapping
     keycode = keycode_config(keycode);
 
-    action_t action;
+    action_t action = {};
     uint8_t  action_layer, when, mod;
 
     switch (keycode) {