From 002ec3e4c3efa65890ba89d290fe2cc209838c12 Mon Sep 17 00:00:00 2001 From: Richard PALO Date: Wed, 25 May 2016 14:43:50 +0200 Subject: 6999 fix 'Use of uninitialized value $picky in numeric eq (==)' in cstyle Reviewed by: Garrett D'Amore Approved by: Robert Mustacchi --- usr/src/tools/scripts/cstyle.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/tools/scripts/cstyle.pl b/usr/src/tools/scripts/cstyle.pl index f4d327e986..874235ef21 100644 --- a/usr/src/tools/scripts/cstyle.pl +++ b/usr/src/tools/scripts/cstyle.pl @@ -430,7 +430,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; -- cgit v1.2.3