From 018db4409e550fc6cd2c07553a0e57538671c29e Mon Sep 17 00:00:00 2001 From: John Wilmes Date: Mon, 24 Jan 2022 10:07:44 -0600 Subject: [PATCH] Fix sporadic compile error Sometimes the compiler can't figure out that a pointer is never used unitialized, so we help it out. --- quantum/process_keycode/process_combo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/process_keycode/process_combo.c b/quantum/process_keycode/process_combo.c index 8b03112fa403..fcb7530484d3 100644 --- a/quantum/process_keycode/process_combo.c +++ b/quantum/process_keycode/process_combo.c @@ -971,7 +971,7 @@ void reset_combos(void) { ripe_head = active_head = COMBO_NULL_STATE; inactive_head = 0; - combo_t *combo; + combo_t *combo = &key_combos[0]; for (combo_state_t i = 0; i < COMBO_LEN; i++) { combo = &key_combos[i]; SET_NEXT_COMBO(combo, (i + 1));