diff options
author | rillig <rillig@pkgsrc.org> | 2015-10-11 18:42:34 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2015-10-11 18:42:34 +0000 |
commit | abfd25a91e25740849b233135f88641ac4f28fc7 (patch) | |
tree | a4c1a6fe442b6e6666fe3e7ec6b89dd9abadcac2 /pkgtools/pkglint | |
parent | 013dd583b8965225c7c161ee1aed6eece82fc52b (diff) | |
download | pkgsrc-abfd25a91e25740849b233135f88641ac4f28fc7.tar.gz |
Fixed runtime error introduced in version 1.884
The variable $m had been dereferenced although it was undefined.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index aff39be43b3..2170f56fb43 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.885 2015/10/11 18:34:23 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.886 2015/10/11 18:42:34 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -5502,6 +5502,7 @@ sub checkfile_buildlink3_mk($) { if (!($m = expect($lines, \$lineno, qr"^BUILDLINK_TREE\+=\s*(\S+)$"))) { $lines->[$lineno]->log_warning("Expected a BUILDLINK_TREE line."); + return; } checklines_buildlink3_mk($lines, $lineno, $m->text(1)); |