Skip to content

Commit

Permalink
fixed variable scope warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jpswinski committed Nov 8, 2023
1 parent c839729 commit 6eea213
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/icesat2/plugin/Atl06Reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ void* Atl06Reader::subsettingThread (void* parm)
Atl06Reader* reader = info->reader;
Icesat2Parms* parms = reader->parms;
stats_t local_stats = {0, 0, 0, 0, 0};
uint32_t extent_counter = 0;
RecordObject** ancillary = NULL;
long* ancillary_index = NULL;

Expand Down Expand Up @@ -576,6 +575,9 @@ void* Atl06Reader::subsettingThread (void* parm)
/* Increment Read Statistics */
local_stats.segments_read = region.latitude.size;

/* Initialize Extent Counter */
uint32_t extent_counter = 0;

/* Loop Through Each Segment */
for(long segment = 0; reader->active && segment < region.num_segments; segment++)
{
Expand Down

0 comments on commit 6eea213

Please sign in to comment.