diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 4b28c25aa..5eac18672 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1815,7 +1815,7 @@ inp_search_closing_paren(char *s) static char* inp_fix_ternary_operator_str(char *line, bool all) { - char *conditional, *if_str, *else_str, *question, *colon, keep, *str_ptr, *str_ptr2, *str_ptr3, *new_str; + char *conditional, *if_str, *else_str, *question, *colon, keep, *str_ptr, *str_ptr2, *new_str; char *end_str = NULL, *beg_str = NULL; if (!strchr(line, '?') && !strchr(line, ':')) @@ -1869,6 +1869,7 @@ inp_fix_ternary_operator_str(char *line, bool all) } /* test for (conditional?... */ else { + char *str_ptr3; str_ptr3 = str_ptr2 - 1; while (str_ptr3 != line) { str_ptr3--;