mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 10:19:04 +00:00
sh: silence sanitizer
Don't add 0 to a null pointer. Reviewed by: jilles
This commit is contained in:
parent
556e66b7b0
commit
5a18515b31
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue