2004-02-26 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Thu, 26 Feb 2004 18:54:46 +0000 (18:54 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Thu, 26 Feb 2004 18:54:46 +0000 (18:54 +0000)
* gpgconf-comp.c (retrieve_options_from_program): Remove broken
string handling.

tools/ChangeLog
tools/gpgconf-comp.c

index 57c52f4..084028c 100644 (file)
@@ -1,5 +1,8 @@
 2004-02-26  Marcus Brinkmann  <marcus@g10code.de>
 
+       * gpgconf-comp.c (retrieve_options_from_program): Remove broken
+       string handling.
+
        * gpgconf-comp.c (change_options_program): Support all types of
        options, including list types.
 
index 3b9927f..e56f9c4 100644 (file)
@@ -1084,12 +1084,6 @@ retrieve_options_from_program (gc_component_t component, gc_backend_t backend)
                    {
                      char *opt_val = opt_value;
 
-                     if (gc_arg_type[option->arg_type].fallback
-                         == GC_ARG_TYPE_STRING)
-                       opt_val++;
-
-                     /* FIXME.  For type none arguments, this is
-                        wrong.  */
                      option->value = xasprintf ("%s,%s", option->value,
                                                 opt_val);
                      xfree (opt_value);