[PATCH] scd: writekey support of ECC

Werner Koch wk at gnupg.org
Mon Mar 10 08:38:02 CET 2014

On Fri,  7 Mar 2014 04:17, gniibe at fsij.org said:

> +  va_start (ap, key_type);
> +  for (i = 0; i < argc; i++)
> +    {

> +    }
> +  va_end (ap);

> +  va_start (ap, key_type);

A second va_start is not portable.  va_copy may be used but that is also
problematic because it is not available on all platforms.  Either build
an array of pointers, use them as you like, and only then do a final
va_end.  Or use just one va_start but collect everything right away
using membuf_t.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-devel mailing list