From: Ken Raeburn Date: Sun, 15 Oct 2006 07:50:54 +0000 (+0000) Subject: Initialize some values before use, silence some warnings X-Git-Tag: krb5-1.6-alpha1~57 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f16e54af347b4c0e24de1f846a81c3d4c1c05ef;p=krb5.git Initialize some values before use, silence some warnings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18705 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnet/telnet.c b/src/appl/telnet/telnet/telnet.c index a44df7ab5..3b8a82d74 100644 --- a/src/appl/telnet/telnet/telnet.c +++ b/src/appl/telnet/telnet/telnet.c @@ -674,6 +674,8 @@ mklist(buf, name) argv = (char **)malloc((n+3)*sizeof(char *)); if (argv == 0) return(unknown); + while (--n >= 0) + argv[n] = 0; /* * Fill up the array of pointers to names. @@ -2050,7 +2052,7 @@ telsnd() int tcc; int count; int returnValue = 0; - unsigned char *tbp; + unsigned char *tbp = NULL; tcc = 0; count = 0;