mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
2004-02-25 Marcus Brinkmann <marcus@g10code.de>
* gpgconf-comp.c (gc_component_list_options): Correct output for lists of arg type none.
This commit is contained in:
parent
9d988d6068
commit
8f8c5c47dd
@ -1,3 +1,8 @@
|
||||
2004-02-25 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* gpgconf-comp.c (gc_component_list_options): Correct output for
|
||||
lists of arg type none.
|
||||
|
||||
2004-02-24 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* README.gpgconf: Revert last change. Add new flags "default",
|
||||
|
@ -837,6 +837,13 @@ gc_component_list_options (int component, FILE *out)
|
||||
fprintf (out, ":%s", option->default_arg ? option->default_arg : "");
|
||||
|
||||
/* The value field. */
|
||||
if (gc_arg_type[option->arg_type].fallback == GC_ARG_TYPE_NONE
|
||||
&& (option->flags & GC_OPT_FLAG_LIST)
|
||||
&& option->value)
|
||||
/* The special format "1,1,1,1,...,1" is converted to a number
|
||||
here. */
|
||||
fprintf (out, ":%u", (strlen (option->value) + 1) / 2);
|
||||
else
|
||||
fprintf (out, ":%s", option->value ? option->value : "");
|
||||
|
||||
/* ADD NEW FIELDS HERE. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user