From bdd65ddb899227c4c38a349f3b640572e9a5be50 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 3 Oct 2013 11:54:58 +0200 Subject: [PATCH] inp_fix_ternary_operator_str(), local scope for str_ptr3 --- src/frontend/inpcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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--;