Uninitialized variables found by static analysis.

This commit is contained in:
wb2osz 2017-11-26 20:27:38 -05:00
parent 590c82b040
commit 656b1413db
2 changed files with 6 additions and 6 deletions

View File

@ -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;
@ -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;

View File

@ -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;
@ -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;