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: gpgme-1.2.0@1385~1044 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=539840d7725abe8e1937e9e3adad8afe1d9d483c;p=gpgme.git Bugfix: forgot to initialize the list of certificates in findCertificates() before adding the found entries --- diff --git a/trunk/gpgmeplug/gpgmeplug.c b/trunk/gpgmeplug/gpgmeplug.c index f9e17ac..f973fde 100644 --- a/trunk/gpgmeplug/gpgmeplug.c +++ b/trunk/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);