summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-add.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-04-08 13:03:00 +0000
committermarkus <markus@openbsd.org>2001-04-08 13:03:00 +0000
commitabc00338cdd343f35cdbfc65e273fd7888634a9e (patch)
treeb5d14569b657498d904e208bb900710755600144 /usr.bin/ssh/ssh-add.c
parentleave_raw_mode if ssh2 "session" is closed (diff)
downloadwireguard-openbsd-abc00338cdd343f35cdbfc65e273fd7888634a9e.tar.xz
wireguard-openbsd-abc00338cdd343f35cdbfc65e273fd7888634a9e.zip
init pointers with NULL, thanks to danimal@danimal.org
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
-rw-r--r--usr.bin/ssh/ssh-add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c
index 8951c883edb..4831bf6991f 100644
--- a/usr.bin/ssh/ssh-add.c
+++ b/usr.bin/ssh/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>
@@ -53,7 +53,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) {
@@ -130,7 +130,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);