aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-09-07 22:45:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-09-07 22:45:43 +0200
commit58a7c513620888c081ce7fc71609a00b67f5b259 (patch)
tree017053f0c7a35ba6c55d7105d478746bea3a2620
parent450975b0c34bcc9659cbb963460b3e4d0df43543 (diff)
checksrc: detect "}else" uses as well
-rwxr-xr-xlib/checksrc.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index c3e79691c..9f5058ddb 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -145,7 +145,7 @@ sub scanfile {
}
# check for "} else"
- if($l =~ /^(.*)\} else/) {
+ if($l =~ /^(.*)\} *else/) {
checkwarn($line, length($1), $file, $l, "else after closing brace on same line");
}
# check for "){"