summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-keyscan.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2004-03-08 09:38:05 +0000
committerdjm <djm@openbsd.org>2004-03-08 09:38:05 +0000
commit884ac89a4c6d3d220e6d9a86e8a67229c2d0729e (patch)
treedbddb569516d331124678cf9eb9c4f7afaa93ecf /usr.bin/ssh/ssh-keyscan.c
parentsyn with reality, ryan ok (diff)
downloadwireguard-openbsd-884ac89a4c6d3d220e6d9a86e8a67229c2d0729e.tar.xz
wireguard-openbsd-884ac89a4c6d3d220e6d9a86e8a67229c2d0729e.zip
explicitly initialise remote_major and remote_minor.
from cjwatson AT debian.org; ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh-keyscan.c')
-rw-r--r--usr.bin/ssh/ssh-keyscan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keyscan.c b/usr.bin/ssh/ssh-keyscan.c
index 348bc3a6d29..c83b7a49bcc 100644
--- a/usr.bin/ssh/ssh-keyscan.c
+++ b/usr.bin/ssh/ssh-keyscan.c
@@ -7,7 +7,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-keyscan.c,v 1.46 2003/11/23 23:17:34 djm Exp $");
+RCSID("$OpenBSD: ssh-keyscan.c,v 1.47 2004/03/08 09:38:05 djm Exp $");
#include <sys/queue.h>
#include <errno.h>
@@ -476,7 +476,7 @@ conrecycle(int s)
static void
congreet(int s)
{
- int remote_major, remote_minor, n = 0;
+ int remote_major = 0, remote_minor = 0, n = 0;
char buf[256], *cp;
char remote_version[sizeof buf];
size_t bufsiz;