sh: silence sanitizer

(cherry picked from commit 5a18515b31)
This commit is contained in:
Piotr Pawel Stefaniak 2021-04-01 07:31:03 +02:00
parent 21b2920724
commit bee62aa5a6

View file

@ -227,7 +227,10 @@ popstackmark(struct stackmark *mark)
}
stacknxt = mark->stacknxt;
stacknleft = mark->stacknleft;
sstrend = stacknxt + stacknleft;
if (stacknleft != 0)
sstrend = stacknxt + stacknleft;
else
sstrend = stacknxt;
INTON;
}