Browse Source

Fix default values for targetlocation and configlog flags.

The previous default value "" wereconsidered as TRUE in the IF
condition, Those flags took effect even if users didn't specify it.
There were no workarounds. Itprevented users to reach to the main
procedure skytraq_read_tracks.

Those should be NULL by default so that the IF condition should
be FALSE if a user wouldn't specify it.
tags/gpsbabel_1_5_4
Kosuke Mizubayashi 4 years ago
parent
commit
3dca0a7106
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      skytraq.cc

+ 2
- 2
skytraq.cc View File

@@ -77,11 +77,11 @@ arglist_t skytraq_args[] = {
},
{
"targetlocation", &opt_set_location, "Set location finder target location as lat,lng",
"", ARGTYPE_STRING, "", ""
NULL, ARGTYPE_STRING, "", ""
},
{
"configlog", &opt_configure_logging, "Configure logging parameter as tmin:tmax:dmin:dmax",
"", ARGTYPE_STRING, "", ""
NULL, ARGTYPE_STRING, "", ""
},
{
"baud", &opt_dlbaud, "Baud rate used for download",


Loading…
Cancel
Save