summaryrefslogtreecommitdiffstats
path: root/src/appl
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-10-15 07:50:54 +0000
committerKen Raeburn <raeburn@mit.edu>2006-10-15 07:50:54 +0000
commit5f16e54af347b4c0e24de1f846a81c3d4c1c05ef (patch)
tree52b09047d4540f5ef048edf39fcec99664332b90 /src/appl
parentb7dc727b8da786812f5b7dc381518ab10b3d69eb (diff)
downloadkrb5-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.c4
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;