freebsd-ports/audio/p5-Net-DAAP-DMAP/files/patch-lib::Net::DAAP::DMAP.pm
Lars Thegler 2fedd9011a - update to 1.25
- avoid 'uninitialized' warning (patch sent to author)
2004-08-21 13:23:15 +00:00

11 lines
439 B
Perl

--- lib/Net/DAAP/DMAP.pm.orig Sat Aug 21 14:59:26 2004
+++ lib/Net/DAAP/DMAP.pm Sat Aug 21 15:09:13 2004
@@ -387,7 +387,7 @@
my $struct = shift;
my $out = '';
- my %by_name = map { $_->{NAME} => $_ } values %$Types;
+ my %by_name = map { $_->{NAME} => $_ } grep { %$_ } values %$Types;
for my $pair (@$struct) {
my ($name, $value) = @$pair;
# dmap_unpack doesn't populate the name when its decoded