inp_modify_exp(), cleanup #4/17, cleanup for loop

This commit is contained in:
rlar 2014-11-02 11:31:20 +01:00
parent 74954fbcfe
commit 6bc63f798d
1 changed files with 1 additions and 4 deletions

View File

@ -5503,12 +5503,9 @@ inp_modify_exp(char* expr)
int error1;
/* scan the expression and remove all '{' and '}' */
str_ptr = expr;
while (*str_ptr) {
for (str_ptr = expr; *str_ptr; str_ptr++)
if ((*str_ptr == '{') || (*str_ptr == '}'))
*str_ptr = ' ';
str_ptr++;
}
/* scan the expression */
str_ptr = expr;
while (*str_ptr != '\0') {