Initialise a variable that might otherwise have caused trouble.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 1 Feb 2003 17:25:06 +0000 (17:25 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 1 Feb 2003 17:25:06 +0000 (17:25 +0000)
Thanks to Ross Younger.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2769 cda61777-01e9-0310-a592-d414129be87e

sshpubk.c

index 8bcbbc7..8bef2da 100644 (file)
--- a/sshpubk.c
+++ b/sshpubk.c
@@ -588,7 +588,7 @@ struct ssh2_userkey *ssh2_load_userkey(const Filename *filename,
     int passlen = passphrase ? strlen(passphrase) : 0;
 
     ret = NULL;                               /* return NULL for most errors */
-    comment = mac = NULL;
+    encryption = comment = mac = NULL;
     public_blob = private_blob = NULL;
 
     fp = f_open(*filename, "rb");