inp_fix_ternary_operator_str(), local scope for str_ptr3

This commit is contained in:
rlar 2013-10-03 11:54:58 +02:00
parent 0260a5b61a
commit bdd65ddb89
1 changed files with 2 additions and 1 deletions

View File

@ -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--;