checksrc: detect "}else" uses as well

This commit is contained in:
Daniel Stenberg 2011-09-07 22:45:43 +02:00
parent 450975b0c3
commit 58a7c51362
1 changed files with 1 additions and 1 deletions

View File

@ -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 "){"