From b5e4dc5abc12941cb0695e4d69d5ac2a2f21406f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 29 Sep 1999 23:20:24 +0000 Subject: -Wall changes. svn path=/trunk/; revision=2626 --- uid.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'uid.c') diff --git a/uid.c b/uid.c index 0d9c0f71..934eae82 100644 --- a/uid.c +++ b/uid.c @@ -70,7 +70,6 @@ static struct idlist *scratchlist; void initialize_saved_lists(struct query *hostlist, const char *idfile) /* read file of saved IDs and attach to each host */ { - int st; FILE *tmpfp; struct query *ctl; @@ -82,14 +81,14 @@ void initialize_saved_lists(struct query *hostlist, const char *idfile) if ((tmpfp = fopen(idfile, "r")) != (FILE *)NULL) { char buf[POPBUFSIZE+1]; - char *host; + char *host = NULL; /* pacify -Wall */ char *user; char *id; char *atsign; /* temp pointer used in parsing user and host */ char *delimp1; char saveddelim1; char *delimp2; - char saveddelim2; + char saveddelim2 = '\0'; /* pacify -Wall */ while (fgets(buf, POPBUFSIZE, tmpfp) != (char *)NULL) { -- cgit v1.2.3