From: nbd Date: Sat, 16 Aug 2008 17:00:50 +0000 (+0000) Subject: fix uninitialized variable in metadata.pm (#3860) X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/a4d916c9b5433b0076acedf3f7be0621f447138b fix uninitialized variable in metadata.pm (#3860) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12325 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/scripts/metadata.pm b/scripts/metadata.pm index fd18b18a2..a527d68f8 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;