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,7 +22,9 @@ 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,
qk_tap_dance_user_fn_t fn)
{
fn(state);
if (fn) {
fn(state);
}
}
void process_tap_dance_action (uint16_t keycode)