(parse_changelog): Add another test for defined value to
authorGerd Moellmann <gerd@gnu.org>
Fri, 20 Jul 2001 10:04:17 +0000 (10:04 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 20 Jul 2001 10:04:17 +0000 (10:04 +0000)
quiet warnings from Perl 5.005 and above.

lib-src/grep-changelog

index 15a3d3c..455d2ce 100755 (executable)
@@ -1,5 +1,5 @@
 #! /usr/bin/perl
-# $Id: grep-changelog,v 1.4 2001/07/20 09:59:19 gerd Exp $
+# $Id: grep-changelog,v 1.5 2001/07/20 10:02:06 gerd Exp $
 
 # Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
 #
@@ -183,6 +183,8 @@ sub parse_changelog ($) {
            }
         }
 
+        last unless defined $line;
+
        if ($line =~ /^\s*\*/) {
            # LINE is the first line of a ChangeLog entry.  Print
            # previous entry if it matches.