From d4e004078176e3c48fda891a62fc5dc48ca314c8 Mon Sep 17 00:00:00 2001 From: Giuseppe Di Natale Date: Thu, 26 Jan 2017 12:36:56 -0800 Subject: [PATCH] OpenZFS 6999 - fix 'Use of uninitialized value $picky in numeric eq (==)' in cstyle Authored by: Richard PALO Reviewed by: Garrett D'Amore Approved by: Robert Mustacchi Reviewed-by: George Melikov Reviewed-by: Brian Behlendorf Ported-by: Giuseppe Di Natale OpenZFS-issue: https://www.illumos.org/issues/6999 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/002ec3e Closes #5653 --- scripts/cstyle.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cstyle.pl b/scripts/cstyle.pl index 7b0c9b7e7..f8dac9c2d 100755 --- a/scripts/cstyle.pl +++ b/scripts/cstyle.pl @@ -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; -- 2.11.4.GIT