in case its NULL

This commit is contained in:
Pavlos Vinieratos 2016-07-13 00:20:28 +02:00
parent 9ecf9073b9
commit 1a7e954f9f

View file

@ -22,8 +22,10 @@ static void _process_tap_dance_action_pair (qk_tap_dance_state_t *state,
static void _process_tap_dance_action_fn (qk_tap_dance_state_t *state, static void _process_tap_dance_action_fn (qk_tap_dance_state_t *state,
qk_tap_dance_user_fn_t fn) qk_tap_dance_user_fn_t fn)
{ {
if (fn) {
fn(state); fn(state);
} }
}
void process_tap_dance_action (uint16_t keycode) void process_tap_dance_action (uint16_t keycode)
{ {