HomeFreeBSD

sh(1): initialize smark to zero in main()

Description

sh(1): initialize smark to zero in main()

As popstackmark may be called on this without pushstackmark having
been called, we need to initialize it so that we don't get a bogus
comparison inside popstackmark, which would have resulted in a
NULL pointer dereference.

MFC After: 3 days
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D40413

Details

Provenance
daniel_octaforge.orgAuthored on Jun 3 2023, 9:08 PM
baptCommitted on Jun 3 2023, 9:09 PM
Reviewer
imp
Differential Revision
D40413: sh(1): initialize smark to zero in main()
Parents
rG47a5d58e3bba: kinst: fix kinst_probe_md field indentation
Branches
Unknown
Tags
Unknown