tsteven4
2016-02-14 19:52:11 UTC
This change
https://github.com/gpsbabel/gpsbabel/commit/4514bffdd911b7a63f8251fce97d6be534b7da77
added a new option to delbin in a non-standard fashion.
argvalptr is used in the definition.
defs.h indicates
delbin is another format without a single test case.
https://github.com/gpsbabel/gpsbabel/commit/4514bffdd911b7a63f8251fce97d6be534b7da77
added a new option to delbin in a non-standard fashion.
argvalptr is used in the definition.
defs.h indicates
argvalptr; /* !!! internal helper. Not used in definitions !!! */
perhaps the intent could have been met by setting defaultvalue instead, i.e.diff --git a/delbin.cc b/delbin.cc
index 0e0ec2d..56735fc 100644
--- a/delbin.cc
+++ b/delbin.cc
@@ -137,7 +137,7 @@ static arglist_t delbin_args[] = {
ARG_NOMINMAX
},
{"hint_at_end", &opt_hint_at_end, "If true, geocache hint at end of
text", NULL, ARGTYPE_BOOL, ARG_NOMINMAX },
- {"gcsym", &opt_gcsym, "If set to 0, prefer user-provided symbols
over Groundspeaks ones for geocaches", NULL, ARGTYPE_BOOL,
ARG_NOMINMAX, (char*) "1" },
+ {"gcsym", &opt_gcsym, "If set to 0, prefer user-provided symbols
over Groundspeaks ones for geocaches", "1", ARGTYPE_BOOL, ARG_NOMINMAX },
ARG_TERMINATOR
};
This is the only suspicious instance I see of a format accessing argvalptr.index 0e0ec2d..56735fc 100644
--- a/delbin.cc
+++ b/delbin.cc
@@ -137,7 +137,7 @@ static arglist_t delbin_args[] = {
ARG_NOMINMAX
},
{"hint_at_end", &opt_hint_at_end, "If true, geocache hint at end of
text", NULL, ARGTYPE_BOOL, ARG_NOMINMAX },
- {"gcsym", &opt_gcsym, "If set to 0, prefer user-provided symbols
over Groundspeaks ones for geocaches", NULL, ARGTYPE_BOOL,
ARG_NOMINMAX, (char*) "1" },
+ {"gcsym", &opt_gcsym, "If set to 0, prefer user-provided symbols
over Groundspeaks ones for geocaches", "1", ARGTYPE_BOOL, ARG_NOMINMAX },
ARG_TERMINATOR
};
delbin is another format without a single test case.