Commit 2c978860 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by James Toy

Ensure we terminate when there are no futher continuation lines when

trying to determine relative indent of conditionals and their blocks.
Reported-by: default avatarJohn Daiker <daikerjohn@gmail.com>
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 744d6ef7
......@@ -1547,8 +1547,9 @@ sub process {
$s =~ /^\s*#\s*?/ ||
$s =~ /^\s*$Ident\s*:/) {
$continuation = ($s =~ /^.*?\\\n/) ? 1 : 0;
$s =~ s/^.*?\n//;
$cond_lines++;
if ($s =~ s/^.*?\n//) {
$cond_lines++;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment