Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

checksrc: detect "}else" uses as well

  • Loading branch information...
commit 58a7c513620888c081ce7fc71609a00b67f5b259 1 parent 450975b
Daniel Stenberg authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/checksrc.pl
2  lib/checksrc.pl
@@ -145,7 +145,7 @@ sub scanfile {
145 145 }
146 146
147 147 # check for "} else"
148   - if($l =~ /^(.*)\} else/) {
  148 + if($l =~ /^(.*)\} *else/) {
149 149 checkwarn($line, length($1), $file, $l, "else after closing brace on same line");
150 150 }
151 151 # check for "){"

0 comments on commit 58a7c51

Please sign in to comment.
Something went wrong with that request. Please try again.