[fix] initialize repeat_state_end in transliteration. Couldn't reproduce the conditional jumps in #308, but this seems to be where they're occurring, and it's generally good practice to initialize things

This commit is contained in:
Al
2018-01-21 16:24:19 -05:00
parent e4c35a0911
commit fa40a7e87c

View File

@@ -768,7 +768,7 @@ char *transliterate(char *trans_name, char *str, size_t len) {
transliteration_state_t prev_state = start_state;
transliteration_state_t prev2_state = start_state;
transliteration_state_t repeat_state_end;
transliteration_state_t repeat_state_end = start_state;
bool in_repeat = false;