diff options
author | Ken Raeburn <raeburn@mit.edu> | 2006-10-15 07:50:54 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2006-10-15 07:50:54 +0000 |
commit | 5f16e54af347b4c0e24de1f846a81c3d4c1c05ef (patch) | |
tree | 52b09047d4540f5ef048edf39fcec99664332b90 /src/appl | |
parent | b7dc727b8da786812f5b7dc381518ab10b3d69eb (diff) | |
download | krb5-5f16e54af347b4c0e24de1f846a81c3d4c1c05ef.tar.gz krb5-5f16e54af347b4c0e24de1f846a81c3d4c1c05ef.tar.xz krb5-5f16e54af347b4c0e24de1f846a81c3d4c1c05ef.zip |
Initialize some values before use, silence some warnings
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18705 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl')
-rw-r--r-- | src/appl/telnet/telnet/telnet.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |