From 58a7c513620888c081ce7fc71609a00b67f5b259 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 7 Sep 2011 22:45:43 +0200 Subject: checksrc: detect "}else" uses as well --- lib/checksrc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "){" -- cgit v1.2.3