summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-05-01 14:01:50 +0200
committerRichard Levitte <levitte@openssl.org>2016-05-01 14:16:32 +0200
commite428f59514291b0c567709cd380fd05a692a2645 (patch)
treeadc2636c0b981e3f8224289198cc75ef655e8324 /util
parent7cafbb4bd373f024c4900dcaa71aaf626c2ddbae (diff)
Skip blank lines if old copyright comment was removed, and only then
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'util')
-rw-r--r--util/copyright.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/copyright.pl b/util/copyright.pl
index bdaa9c1052..ccc70af63f 100644
--- a/util/copyright.pl
+++ b/util/copyright.pl
@@ -31,6 +31,7 @@ sub check_comment()
}
print @lines unless $skipit;
+ return $skipit;
}
# Look for leading copyright blocks and process (print/swallow) them.
@@ -61,7 +62,7 @@ EOF
}
next if m@^$@;
last if not m@/\*@;
- &check_comment($_);
+ last unless &check_comment($_);
}
if (defined($_)) {