Skip to content

Commit

Permalink
Uninitialized variables found by static analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
wb2osz committed Nov 27, 2017
1 parent 590c82b commit 656b141
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions geotranz/mgrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ long Convert_MGRS_To_Geodetic (char* MGRS,
*/
{ /* Convert_MGRS_To_Geodetic */
long zone;
char hemisphere;
char hemisphere = '?';
double easting;
double northing;
long zone_exists;
Expand Down Expand Up @@ -1260,9 +1260,9 @@ long Convert_MGRS_To_UPS ( char *MGRS,
double false_northing; /* False northing for 3rd letter */
double grid_easting; /* easting for 100,000 meter grid square */
double grid_northing; /* northing for 100,000 meter grid square */
long zone;
long zone = 0;
long letters[MGRS_LETTERS];
long in_precision;
long in_precision = 0;
int index = 0;
long error_code = MGRS_NO_ERROR;

Expand Down
6 changes: 3 additions & 3 deletions geotranz/usng.c
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ long Convert_USNG_To_Geodetic (char* USNG,
*/
{ /* Convert_USNG_To_Geodetic */
long zone;
char hemisphere;
char hemisphere = '?';
double easting;
double northing;
long zone_exists;
Expand Down Expand Up @@ -1178,9 +1178,9 @@ long Convert_USNG_To_UPS ( char *USNG,
double false_northing; /* False northing for 3rd letter */
double grid_easting; /* easting for 100,000 meter grid square */
double grid_northing; /* northing for 100,000 meter grid square */
long zone;
long zone = 0;
long letters[USNG_LETTERS];
long in_precision;
long in_precision = 0;
int index = 0;
long error_code = USNG_NO_ERROR;

Expand Down

0 comments on commit 656b141

Please sign in to comment.