Skip to content
Snippets Groups Projects
Commit 0f823564 authored by Luc Hermitte's avatar Luc Hermitte
Browse files

BUG: Fix possible division by 0 (coverity)

parent 69a3438e
No related branches found
No related tags found
No related merge requests found
...@@ -971,7 +971,7 @@ namespace ossimplugins ...@@ -971,7 +971,7 @@ namespace ossimplugins
} }
} }
theAzimuthTimeOffset = cumulAzimuthTime /= count; theAzimuthTimeOffset = count > 0 ? cumulAzimuthTime / count : 0;
// Then, fix the range time // Then, fix the range time
count=0; count=0;
...@@ -992,7 +992,7 @@ namespace ossimplugins ...@@ -992,7 +992,7 @@ namespace ossimplugins
} }
} }
theRangeTimeOffset = cumulRangeTime/=count; theRangeTimeOffset = count > 0 ? cumulRangeTime/count : 0;
} }
void get( void get(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment