fix wrong null character detection in remove_expr()

This commit is contained in:
stefan schippers 2026-02-20 11:57:37 +01:00
parent b14e07a6c4
commit b1bfafe329
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ static void remove_expr(char *s)
if(*ptr == ')') {
plev--;
if(plev == 0) ptr++;
if(!ptr) break;
if(!*ptr) break;
}
*s = *ptr;
ptr++;