OpenZFS 6999 - fix 'Use of uninitialized value $picky in numeric eq (==)' in cstyle

Authored by: Richard PALO <richard@NetBSD.org>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Robert Mustacchi <rm@joyent.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>

OpenZFS-issue: https://www.illumos.org/issues/6999
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/002ec3e
Closes #5653
This commit is contained in:
Giuseppe Di Natale 2017-01-26 12:36:56 -08:00 committed by Brian Behlendorf
parent 2014c09f64
commit d4e0040781
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ line: while (<$filehandle>) {
$function_header_full_indent = 0;
}
if ($in_function_header && /{$/ ) {
if ($picky == 1) {
if ($picky) {
err("opening brace on same line as function header");
}
$in_function_header = 0;