summaryrefslogtreecommitdiff
path: root/ssh-add.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-08 18:04:36 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-08 18:04:36 +0000
commitd5730a8b858bdab06f3162ab89c001e63c2b954d (patch)
tree044b552b22dadd8b3a5d26de1b94609666601a35 /ssh-add.c
parent49e57a871abf4304b96bdd4abc5f5872cdd913ea (diff)
- markus@cvs.openbsd.org 2001/04/08 13:03:00
[ssh-add.c] init pointers with NULL, thanks to danimal@danimal.org
Diffstat (limited to 'ssh-add.c')
-rw-r--r--ssh-add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-add.c b/ssh-add.c
index 05ff4cab..eaa77381 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-add.c,v 1.31 2001/03/26 08:07:08 markus Exp $");
+RCSID("$OpenBSD: ssh-add.c,v 1.32 2001/04/08 13:03:00 markus Exp $");
#include <openssl/evp.h>
@@ -59,7 +59,7 @@ void
delete_file(AuthenticationConnection *ac, const char *filename)
{
Key *public;
- char *comment;
+ char *comment = NULL;
public = key_load_public(filename, &comment);
if (public == NULL) {
@@ -136,7 +136,7 @@ add_file(AuthenticationConnection *ac, const char *filename)
{
struct stat st;
Key *private;
- char *comment, *askpass = NULL, *pass;
+ char *comment = NULL, *askpass = NULL, *pass;
char buf[1024], msg[1024];
int interactive = isatty(STDIN_FILENO);