summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-06-03 02:35:21 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-06-03 02:35:21 +0000
commit4bbf41c98f478a99f12752789647795b9b671ecb (patch)
tree60fff945f03560e9c33719b563c0e86a47386a95
parentefeee3134239b2b6b91b93ab0042e645ff3099c8 (diff)
Make warnings disappear.
-rw-r--r--libexec/rshd/rshd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c
index d45646ac1f0..ce0ba72c7f9 100644
--- a/libexec/rshd/rshd.c
+++ b/libexec/rshd/rshd.c
@@ -39,7 +39,7 @@ static char copyright[] =
#ifndef lint
/* from: static char sccsid[] = "@(#)rshd.c 8.2 (Berkeley) 4/6/94"; */
-static char *rcsid = "$Id: rshd.c,v 1.22 1998/05/15 04:28:26 art Exp $";
+static char *rcsid = "$Id: rshd.c,v 1.23 1998/06/03 02:35:20 angelos Exp $";
#endif /* not lint */
/*
@@ -206,9 +206,9 @@ doit(fromp)
struct passwd *pwd;
u_short port;
fd_set ready, readfrom;
- int cc, nfd, pv[2], pid, s;
+ int cc, nfd, pv[2], pid, s = 0;
int one = 1;
- char *hostname, *errorstr, *errorhost;
+ char *hostname, *errorstr, *errorhost = (char *) NULL;
char *cp, sig, buf[BUFSIZ];
char cmdbuf[NCARGS+1], locuser[16], remuser[16];
char remotehost[2 * MAXHOSTNAMELEN + 1];