From: Daniel Stenberg Date: Wed, 7 Sep 2011 20:45:43 +0000 (+0200) Subject: checksrc: detect "}else" uses as well X-Git-Tag: curl-7_22_0~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58a7c513620888c081ce7fc71609a00b67f5b259;p=thirdparty%2Fcurl.git checksrc: detect "}else" uses as well --- diff --git a/lib/checksrc.pl b/lib/checksrc.pl index c3e79691cc..9f5058ddb5 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 "){"