From: Richard Levitte Date: Sun, 1 May 2016 12:01:50 +0000 (+0200) Subject: Skip blank lines if old copyright comment was removed, and only then X-Git-Tag: OpenSSL_1_1_0-pre6~979 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=e428f59514291b0c567709cd380fd05a692a2645 Skip blank lines if old copyright comment was removed, and only then Reviewed-by: Rich Salz --- 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($_)) {