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 fd18b18a29c039315f492cb938d392777f553071..a527d68f8f4254044f01c3911c2be605211ccafc 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;