aboutsummaryrefslogtreecommitdiffstats
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
commit72c514fe8821571ce2ef5a24b6a954fc7f8b2095 (patch)
treedf834205613c5cdbf5059e848b23958281f6f82b
parent7225813f0ae778197c9a9ee4af0f52b65d1788d4 (diff)
downloadupstream-72c514fe8821571ce2ef5a24b6a954fc7f8b2095.tar.gz
upstream-72c514fe8821571ce2ef5a24b6a954fc7f8b2095.tar.bz2
upstream-72c514fe8821571ce2ef5a24b6a954fc7f8b2095.zip
fix uninitialized variable in metadata.pm (#3860)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12325 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--scripts/metadata.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index fd18b18a29..a527d68f8f 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;