summaryrefslogtreecommitdiffstats
path: root/src/appl
diff options
context:
space:
mode:
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;