fix uninitialized variable in metadata.pm (#3860)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 16 Aug 2008 17:00:50 +0000 (17:00 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 16 Aug 2008 17:00:50 +0000 (17:00 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12325 3c298f89-4303-0410-b956-a3cf2f4a3e73

scripts/metadata.pm

index fd18b18..a527d68 100644 (file)
@@ -54,6 +54,7 @@ sub parse_package_metadata($) {
                        $srcpackage{$src} = [];
                        undef $pkg;
                };
+               next unless $src;
                /^Package:\s*(.+?)\s*$/ and do {
                        $pkg = {};
                        $pkg->{src} = $src;
This page took 0.022947 seconds and 4 git commands to generate.