Skip to content

Commit

Permalink
Fix sporadic compile error
Browse files Browse the repository at this point in the history
Sometimes the compiler can't figure out that a pointer is never used
unitialized, so we help it out.
  • Loading branch information
johnwilmes committed Jan 24, 2022
1 parent 82bcca4 commit 018db44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/process_keycode/process_combo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 018db44

Please sign in to comment.