fix uninitialized variable in metadata.pm (#3860)
authorFelix Fietkau <nbd@openwrt.org>
Sat, 16 Aug 2008 17:00:50 +0000 (17:00 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 16 Aug 2008 17:00:50 +0000 (17:00 +0000)
SVN-Revision: 12325

scripts/metadata.pm

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