From: Marius Gavrilescu Date: Sat, 1 Aug 2015 21:55:41 +0000 (+0300) Subject: Fix uninitialized warning X-Git-Tag: 1.000~4 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=a71c6c1eabd8e0fafdc49c29638de376da6f1b67;p=app-musicexpo.git Fix uninitialized warning --- diff --git a/lib/App/MusicExpo.pm b/lib/App/MusicExpo.pm index a25a132..18ee13c 100644 --- a/lib/App/MusicExpo.pm +++ b/lib/App/MusicExpo.pm @@ -154,7 +154,7 @@ sub run { for my $ver (@versions) { push @{$entry{formats}}, {format => $ver->{format}, file => $ver->{file}}; for my $key (keys %$ver) { - $entry{$key} = $ver->{$key} if $ver->{$key} ne '?'; + $entry{$key} = $ver->{$key} if $ver->{$key} && $ver->{$key} ne '?'; } } delete $entry{$_} for qw/format file/;