summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGiuseppe Di Natale <[email protected]>2017-01-26 12:36:56 -0800
committerBrian Behlendorf <[email protected]>2017-01-26 12:36:56 -0800
commitd4e004078176e3c48fda891a62fc5dc48ca314c8 (patch)
tree3e70ff8846d5fa3af818a2b20aa399d796bef19c /scripts
parent2014c09f64a484b8fc3690f1a4c1e749f5fdda48 (diff)
OpenZFS 6999 - fix 'Use of uninitialized value $picky in numeric eq (==)' in cstyle
Authored by: Richard PALO <[email protected]> Reviewed by: Garrett D'Amore <[email protected]> Approved by: Robert Mustacchi <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Ported-by: Giuseppe Di Natale <[email protected]> OpenZFS-issue: https://www.illumos.org/issues/6999 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/002ec3e Closes #5653
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cstyle.pl2
1 files changed, 1 insertions, 1 deletions
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;