From: robertlipe Date: Sun, 11 May 2014 20:30:22 +0000 (+0000) Subject: Comment that option 'foo=foo' won't work. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~131 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=991c8b6312a3ccc5d9d103fc4e6f07a92b388b1c;p=gpsbabel.git Comment that option 'foo=foo' won't work. --- diff --git a/gpsbabel/vecs.cc b/gpsbabel/vecs.cc index e6ed393d8..6a485b2f5 100644 --- a/gpsbabel/vecs.cc +++ b/gpsbabel/vecs.cc @@ -1149,6 +1149,9 @@ assign_option(const char* module, arglist_t* ap, const char* val) return; } + // Fixme - this is probably somewhere between wrong and less than great. If you have an option "foo" + // and want to set it to the value "foo", this code will prevent that from happening, but we seem to have + // code all over the place that relies on this. :-/ if (case_ignore_strcmp(val, ap->argstring) == 0) { c = ""; } else {