From: Karl-Heinz Zimmer Date: Fri, 8 Mar 2002 18:13:20 +0000 (+0000) Subject: Bugfix: forgot to initialize the list of certificates in findCertificates() before... X-Git-Tag: V0-3-5~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3ec1930ae3b1b47afe53729fa3eaacdeb8361bf0;p=gpgme.git Bugfix: forgot to initialize the list of certificates in findCertificates() before adding the found entries --- diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c index f9e17ac..f973fde 100644 --- a/gpgmeplug/gpgmeplug.c +++ b/gpgmeplug/gpgmeplug.c @@ -1192,6 +1192,8 @@ bool findCertificates( const char* addressee, char** certificates ) const char *s; const char *s2; bool bOk = false; + + strcpy( *certificates, "" ); gpgme_new (&ctx); gpgme_set_protocol (ctx, GPGMEPLUG_PROTOCOL);