Skip blank lines if old copyright comment was removed, and only then
[openssl.git] / util / copyright.pl
index bdaa9c1052c7394ecb7d6055c7b32fb569ffc55e..ccc70af63f87985b63997bac9f01121d6ad519f5 100644 (file)
@@ -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($_)) {