Skip to content

Commit

Permalink
Fix uninitialised variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jan 30, 2025
1 parent 7c3e547 commit 2b2eb98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -12402,7 +12402,7 @@ sub notes
}
} elsif(ref($hr) eq 'ARRAY') {
warn 'TODO: ', Data::Dumper->new([$hr])->Dump();
} elsif($hr->can('lat') && defined($region) && ($hr->country() eq $region)) {
} elsif($hr->can('lat') && defined($region) && $hr->country() && ($hr->country() eq $region)) {
# Geo::Location::Point
warn 'TODO: ', Data::Dumper->new([$hr])->Dump(), "\n\t", ref($hr), "\n\t", $hr->as_string();
push @{$note_locations}, {
Expand Down

0 comments on commit 2b2eb98

Please sign in to comment.