Skip to content

Commit 02a15fa

Browse files
committed
core: Fix variable init and header include
1 parent 1833ca1 commit 02a15fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/keymap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
#include "action_macro.h"
2323
#include "wait.h"
2424
#include "debug.h"
25+
#include "bootloader.h"
2526

2627

2728
static action_t keycode_to_action(uint8_t keycode);
@@ -123,7 +124,7 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
123124
/* translates keycode to action */
124125
static action_t keycode_to_action(uint8_t keycode)
125126
{
126-
action_t action;
127+
action_t action = {};
127128
switch (keycode) {
128129
case KC_A ... KC_EXSEL:
129130
case KC_LCTRL ... KC_RGUI:

0 commit comments

Comments
 (0)