summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-16 17:00:50 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-16 17:00:50 +0000
commit696b05e031989193c2ee0543a341939168c6f484 (patch)
treed89c5e38e77a36a92d6e395003895e4bda6bc6d6 /scripts
parent1bdd7d046004f7526ac42ebba3b3c2b6fd6974ea (diff)
downloadmtk-20170518-696b05e031989193c2ee0543a341939168c6f484.zip
mtk-20170518-696b05e031989193c2ee0543a341939168c6f484.tar.gz
mtk-20170518-696b05e031989193c2ee0543a341939168c6f484.tar.bz2
fix uninitialized variable in metadata.pm (#3860)
SVN-Revision: 12325
Diffstat (limited to 'scripts')
-rw-r--r--scripts/metadata.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index fd18b18..a527d68 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -54,6 +54,7 @@ sub parse_package_metadata($) {
$srcpackage{$src} = [];
undef $pkg;
};
+ next unless $src;
/^Package:\s*(.+?)\s*$/ and do {
$pkg = {};
$pkg->{src} = $src;