]> iEval git - app-musicexpo.git/commitdiff
Fix uninitialized warning
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 1 Aug 2015 21:55:41 +0000 (00:55 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 1 Aug 2015 21:55:41 +0000 (00:55 +0300)
lib/App/MusicExpo.pm

index a25a132ba1427f847c361c4760244f9a762b8b9e..18ee13c4d248698de27f861c8074342d51138029 100644 (file)
@@ -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/;
This page took 0.024657 seconds and 4 git commands to generate.