HomeFreeBSD

indent(1): Fix breakage caused by single comment following "else".

Description

indent(1): Fix breakage caused by single comment following "else".

indent(1) simply wasn't taught that "else" may be followed by a comment
without any opening brace anywhere on the line, so it was very confused
in such cases.

Differential Revision: https://reviews.freebsd.org/D6966 (Partial)
Obtained from: Piotr Stefaniak

Details

Provenance
pfgAuthored on
Parents
rS303483: indent(1): Avoid potential use-after-free.
Branches
Unknown
Tags
Unknown