From a71c6c1eabd8e0fafdc49c29638de376da6f1b67 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 2 Aug 2015 00:55:41 +0300 Subject: [PATCH] Fix uninitialized warning --- lib/App/MusicExpo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/; -- 2.39.2