HomeFreeBSD

Initialize some local variables earlier

Description

Initialize some local variables earlier

Move the initialization of these variables to the beginning of their
respective functions.

On our end this creates a small amount of unneeded churn, as these
variables are properly initialized before their first use in all cases.
However, changing this benefits at least one downstream consumer
(NetApp) by allowing local and future modifications to these functions
to be made without worrying about where the initialization occurs.

Reviewed by: melifaro, rscheff
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D26454

Details

Provenance
mhorneAuthored on
Reviewer
melifaro
Differential Revision
D26454: Initialize some local variables earlier
Parents
rS365880: Add pargs, penv, pwdx commands and aliases to procstat(1).
Branches
Unknown
Tags
Unknown