Skip to content

Commit

Permalink
Fix uninitialised variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jul 15, 2024
1 parent b897689 commit 6ee5c31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -10835,9 +10835,10 @@ sub get_all_residences
my $nextnext = $iterator->peek(2);
last if(!defined($nextnext));
my $place = place({ person => $person, record => $current, nopreposition => 1 });
next if(!defined($place));
my $nextplace = place({ person => $person, record => $next, nopreposition => 1 });
my $nextnextplace = place({ person => $person, record => $nextnext, nopreposition => 1 });
if(($nextnextplace eq $place) && ($nextplace ne $place)) {
if(defined($nextnextplace) && ($nextnextplace eq $place) && ($nextplace ne $place)) {
my @locations = get_location($place);
my @nextlocations = get_location($nextplace);

Expand Down

0 comments on commit 6ee5c31

Please sign in to comment.