fix wrong null character detection in remove_expr()
This commit is contained in:
parent
b14e07a6c4
commit
b1bfafe329
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue