diff --git a/VER.txt b/VER.txt index cf4156e..4c54772 100644 --- a/VER.txt +++ b/VER.txt @@ -1 +1 @@ -11012019 \ No newline at end of file +29012019 \ No newline at end of file diff --git a/src/rinex.c b/src/rinex.c index a0cbfba..b503805 100644 --- a/src/rinex.c +++ b/src/rinex.c @@ -2825,6 +2825,9 @@ BOOL RINEX_DecodeGPSNavigationFile( if( result == FALSE ) { GNSS_ERROR_MSG( "RINEX_GetHeader returned FALSE." ); + FILE *ftoold=fopen("/tmp/toold", "ab+"); + if(ftoold) fclose(ftoold); + return FALSE; } @@ -3928,6 +3931,9 @@ BOOL RINEX_GetKlobucharIonoParametersFromNavFile( if( result == FALSE ) { GNSS_ERROR_MSG( "RINEX_GetHeader returned FALSE." ); + FILE *ftoold=fopen("/tmp/toold", "ab+"); + if(ftoold) fclose(ftoold); + return FALSE; } diff --git a/src/sondemod.c b/src/sondemod.c index 28a2aea..d1fc82e 100644 --- a/src/sondemod.c +++ b/src/sondemod.c @@ -1894,7 +1894,8 @@ static void decodeframe(uint8_t m, uint32_t ip, uint32_t fromport) } if (almage+maxalmage>gpstime) anonym0->posok = 1; else if (almanachage>0UL) { - fopen("/tmp/toold", "ab+"); + FILE *ftoold=fopen("/tmp/toold", "ab+"); + if(ftoold) fclose(ftoold); osic_WrINT32(almanachage/60UL, 10UL); osi_WrStrLn(" Min (almanach too old)", 24ul); if (almread+4UL<=systime) { @@ -1950,7 +1951,8 @@ static void decodeframe(uint8_t m, uint32_t ip, uint32_t fromport) */ if (contextr9.posok && contextr9.lat!=0.0 && contextr9.long0!=0.0 && contextr9.heig==0.0 && contextr9.dir==0.0) { - fopen("/tmp/toold", "ab+"); + FILE *ftoold=fopen("/tmp/toold", "ab+"); + if(ftoold) fclose(ftoold); } if (contextr9.posok && contextr9.lat!=0.0 && contextr9.long0!=0.0) {