(parse_changelog): Add test for defined value to
authorGerd Moellmann <gerd@gnu.org>
Fri, 20 Jul 2001 09:59:34 +0000 (09:59 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 20 Jul 2001 09:59:34 +0000 (09:59 +0000)
quiet warning from Perl 5.005 or above.

lib-src/ChangeLog
lib-src/grep-changelog

index 9125c95..a9a5a22 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-20  Juanma Barranquero  <lektu@terra.es>
+
+       * grep-changelog (parse_changelog): Add test for defined value to
+       quiet warning from Perl 5.005 or above.
+
 2001-07-17  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * emacsclient.c (print_help_and_exit): Fix help message for
index 15f5196..b264bdc 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/perl
-# $Id: grep-changelog,v 1.2 2000/05/05 13:19:05 gerd Exp $
+# $Id: grep-changelog,v 1.3 2000/06/14 07:09:42 meyering Exp $
 
-# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
 #
 # This file is part of GNU Emacs.
 #
@@ -174,7 +174,7 @@ sub parse_changelog ($) {
            $header = $line;
 
            # Add empty lines below the header.
-           while (($line = <IN>) && $line =~ /^\s*$/) {
+           while (defined($line = <IN>) && $line =~ /^\s*$/) {
                $header = "$header$line";
            }
         }