HomeFreeBSD

sh: make smark a static variable instead of a local in main()

Description

sh: make smark a static variable instead of a local in main()

We are modifying it after setjmp and then accessing it after the jump,
so it cannot be a local.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D40415

Details

Provenance
daniel_octaforge.orgAuthored on Jun 7 2023, 3:06 PM
jillesCommitted on Jun 8 2023, 9:01 PM
Differential Revision
D40415: sh(1): make smark a static variable instead of a local in main()
Parents
rG1320520ba488: libvmmapi: Remove some unneeded includes
Branches
Unknown
Tags
Unknown