summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard PALO <richard@NetBSD.org>2016-05-25 14:43:50 +0200
committerRobert Mustacchi <rm@joyent.com>2016-06-03 10:08:39 -0700
commit002ec3e4c3efa65890ba89d290fe2cc209838c12 (patch)
treeec0fe4c7f86bde53e90dba13b67dbd6e07acf29a
parent0dd053d7d890618ea1fc697b07de364e69eb4190 (diff)
downloadillumos-joyent-002ec3e4c3efa65890ba89d290fe2cc209838c12.tar.gz
6999 fix 'Use of uninitialized value $picky in numeric eq (==)' in cstyle
Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r--usr/src/tools/scripts/cstyle.pl2
1 files changed, 1 insertions, 1 deletions
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;