sh: silence sanitizer

Don't add 0 to a null pointer.
Reviewed by:	jilles
This commit is contained in:
Piotr Pawel Stefaniak 2021-04-01 07:31:03 +02:00
parent 556e66b7b0
commit 5a18515b31

View File

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