Style guide function variable initialization?

"J. Lewis Muir" <[email protected]> Fri, 22 Nov 2024 23:18:23 -0600
Newsgroups gmane.os.netbsd.documentation
Message-ID <izj44e4eaaugojneyzqawswmixvncsnkukmq2y6mdzjqy64oad@i5vls2z5llll>
Hi!

Near the beginning of the "function" function in the NetBSD source code
style guide

  https://cvsweb.netbsd.org/bsdweb.cgi/src/share/misc/style?rev=HEAD&content-type=text/x-cvsweb-markup

it says the following:

  Avoid initializing variables in the declarations; move
  declarations next to their first use, and initialize
  opportunistically. This avoids over-initialization and
  accidental bugs caused by declaration reordering.

Is that a typo in the first sentence; should "move declarations" be
"move initializations"?  I ask because all of the example functions in
the style guide seem to have the variable declarations at the beginning
of the function, not next to their first use.

Thanks!

Lewis