aboutsummaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
Diffstat (limited to 'agent')
-rw-r--r--agent/ChangeLog4
-rw-r--r--agent/protect.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/agent/ChangeLog b/agent/ChangeLog
index 5618f06d6..ceb693f5b 100644
--- a/agent/ChangeLog
+++ b/agent/ChangeLog
@@ -1,3 +1,7 @@
+2009-12-08 Werner Koch <[email protected]>
+
+ * protect.c (agent_unprotect): Avoid compiler warning.
+
2009-12-08 Marcus Brinkmann <[email protected]>
* call-pinentry.c (start_pinentry): Convert posix fd to assuan fd.
diff --git a/agent/protect.c b/agent/protect.c
index d6457ad2a..54f6bd38a 100644
--- a/agent/protect.c
+++ b/agent/protect.c
@@ -775,6 +775,7 @@ agent_unprotect (const unsigned char *protectedkey, const char *passphrase,
if (!n)
return gpg_error (GPG_ERR_INV_SEXP);
+ cleartext = NULL; /* Avoid cc warning. */
rc = do_decryption (s, n,
passphrase, s2ksalt, s2kcount,
iv, 16,