diff options
| author | Gerd Moellmann | 2001-07-20 10:04:17 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-07-20 10:04:17 +0000 |
| commit | 3eb7ddf329945b08b2c4ed4ea2af8cc5dc578a74 (patch) | |
| tree | bdb5a7f72d25ae849cf4147ee8179c0c36a6c0ee | |
| parent | 177ab8cec1356e8fd553ca51853c9fedbe127588 (diff) | |
| download | emacs-3eb7ddf329945b08b2c4ed4ea2af8cc5dc578a74.tar.gz emacs-3eb7ddf329945b08b2c4ed4ea2af8cc5dc578a74.zip | |
(parse_changelog): Add another test for defined value to
quiet warnings from Perl 5.005 and above.
| -rwxr-xr-x | lib-src/grep-changelog | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib-src/grep-changelog b/lib-src/grep-changelog index 15a3d3c99d5..455d2cea5a8 100755 --- a/lib-src/grep-changelog +++ b/lib-src/grep-changelog | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #! /usr/bin/perl | 1 | #! /usr/bin/perl |
| 2 | # $Id: grep-changelog,v 1.4 2001/07/20 09:59:19 gerd Exp $ | 2 | # $Id: grep-changelog,v 1.5 2001/07/20 10:02:06 gerd Exp $ |
| 3 | 3 | ||
| 4 | # Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | 4 | # Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. |
| 5 | # | 5 | # |
| @@ -183,6 +183,8 @@ sub parse_changelog ($) { | |||
| 183 | } | 183 | } |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | last unless defined $line; | ||
| 187 | |||
| 186 | if ($line =~ /^\s*\*/) { | 188 | if ($line =~ /^\s*\*/) { |
| 187 | # LINE is the first line of a ChangeLog entry. Print | 189 | # LINE is the first line of a ChangeLog entry. Print |
| 188 | # previous entry if it matches. | 190 | # previous entry if it matches. |