aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl-Heinz Zimmer <[email protected]>2002-03-08 18:13:20 +0000
committerKarl-Heinz Zimmer <[email protected]>2002-03-08 18:13:20 +0000
commit3ec1930ae3b1b47afe53729fa3eaacdeb8361bf0 (patch)
treec4feb8a1e23b81eed8a112fccffb8c60cb80bfee
parentNew feature: Ask user which certificate is to be taken when more than one fou... (diff)
downloadgpgme-3ec1930ae3b1b47afe53729fa3eaacdeb8361bf0.tar.gz
gpgme-3ec1930ae3b1b47afe53729fa3eaacdeb8361bf0.zip
Bugfix: forgot to initialize the list of certificates in findCertificates() before adding the found entries
-rw-r--r--gpgmeplug/gpgmeplug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c
index f9e17acb..f973fde4 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);