diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 849a30071..524471a22 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -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') {