summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavlos Vinieratos <pvinis@gmail.com>2016-07-13 00:20:28 +0200
committerPavlos Vinieratos <pvinis@gmail.com>2016-07-16 00:04:12 +0200
commit1a7e954f9fc4d250ba1ae46e3bfc168aca2b5cce (patch)
treef9c1c4c5edc98cff8a51fb0cd9fd087e4c67c928
parent9ecf9073b96799e52a1f1c0d35b57177382902ce (diff)
in case its NULL
-rw-r--r--quantum/process_keycode/process_tap_dance.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c
index 9b172e1b6c..186889bc29 100644
--- a/quantum/process_keycode/process_tap_dance.c
+++ b/quantum/process_keycode/process_tap_dance.c
@@ -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)