* utility.c (printsub): Ensure variable set before use
authorEzra Peisach <epeisach@mit.edu>
Tue, 19 Jun 2001 17:36:41 +0000 (17:36 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 19 Jun 2001 17:36:41 +0000 (17:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13386 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnetd/ChangeLog
src/appl/telnet/telnetd/utility.c

index 346785cf4a2a3e6385d7fa5fe79f2644c2cf9827..7fe04048490a62a02134220f2adefe6a9e8451e8 100644 (file)
@@ -1,3 +1,7 @@
+2001-06-19  Ezra Peisach  <epeisach@mit.edu>
+
+       * utility.c (printsub): Ensure variable set before use.
+
 2001-06-18  Ezra Peisach  <epeisach@mit.edu>
 
        * utility.c (printdata): Cast argument to isprint() to int.
index 9266f7929fc6165a476514573d27d03c50fa4059..dea7b97e5997863fc5bddae6820d1179dc55abc7 100644 (file)
@@ -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))