Skip to content

Commit

Permalink
Fix uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 1, 2018
1 parent a3cd720 commit 87d3d96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion createdatabase.PL
Original file line number Diff line number Diff line change
Expand Up @@ -1032,13 +1032,15 @@ if(my $oa = $ENV{'OPENADDR_HOME'}) {
'LAT' => $properties->{'geom:latitude'},
'LON' => $properties->{'geom:longitude'},
'NAME' => uc($properties->{'wof:name'}),
'NUMBER' => uc($properties->{'addr:housenumber'}),
'STREET' => $street,
'CITY' => $city,
'STATE' => $state,
'COUNTRY' => $country,
'POSTCODE' => $postcode,
};
if(my $number = $properties->{'addr:housenumber'}) {
$row->{'NUMBER'} = uc($number);
}
$inserts += import(row => $row, file => $file, ua => $ua, dbh => $dbh);
if($inserts >= MAX_INSERT_COUNT) {
flush_queue($dbh);
Expand Down

0 comments on commit 87d3d96

Please sign in to comment.