From a07a1be46528bc5bedbc1a362a66b643728fcffe Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 19 Jun 2001 17:36:41 +0000 Subject: [PATCH] * utility.c (printsub): Ensure variable set before use git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13386 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnetd/ChangeLog | 4 ++++ src/appl/telnet/telnetd/utility.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index 346785cf4..7fe040484 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,7 @@ +2001-06-19 Ezra Peisach + + * utility.c (printsub): Ensure variable set before use. + 2001-06-18 Ezra Peisach * utility.c (printdata): Cast argument to isprint() to int. diff --git a/src/appl/telnet/telnetd/utility.c b/src/appl/telnet/telnetd/utility.c index 9266f7929..dea7b97e5 100644 --- a/src/appl/telnet/telnetd/utility.c +++ b/src/appl/telnet/telnetd/utility.c @@ -550,7 +550,7 @@ printsub(direction, pointer, length) unsigned char *pointer; /* where suboption data sits */ int length; /* length of suboption data */ { - register int i; + register int i = 0; char buf[512]; if (!(diagnostic & TD_OPTIONS)) -- 2.26.2