write GPS info to CSV file, even though if user don't want --nmea output
@@ -4670,12 +4670,10 @@ while(0 < restlen)
}
else if(option->option_code == OPTIONCODE_NMEA)
{
- if(fh_nmea != NULL)
- {
+ memset(&nmeasentence, 0, OPTIONLEN_MAX);
if(option->option_length >= 48)
{
nmealen = option->option_length;
- memset(&nmeasentence, 0, OPTIONLEN_MAX);
memcpy(&nmeasentence, &option->data, option->option_length);
csc = 0;
csn = 0;
@@ -4701,7 +4699,6 @@ while(0 < restlen)
}
}
}
- }
optr += option->option_length +padding +OH_SIZE;
restlen -= option->option_length +padding +OH_SIZE;
}
