Get semantics of invertable options, and of cancelling, right.
[adns] / client / adh-opts.c
index 92a3c0b..ac1ad69 100644 (file)
@@ -309,7 +309,7 @@ void opt_do(const struct optioninfo *oip, const char *arg, int invert) {
   switch (oip->type) {
   case ot_flag:
     assert(!arg);
-    *oip->storep= invert ? !oip->value : oip->value;
+    *oip->storep= !invert;
     return;
   case ot_value:
     assert(!arg);