summaryrefslogtreecommitdiffstats
path: root/usr.bin/tn3270
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-10-07 17:53:30 +0000
committerphk <phk@FreeBSD.org>1995-10-07 17:53:30 +0000
commit6265a3bb38f222a8b8d7a444d36e9d6d56ef2126 (patch)
tree079d95ba64687f79f72b4ef4f4e9666b17ad2036 /usr.bin/tn3270
parentee1cb19f07eb2625aacfa57bf7618eec69484749 (diff)
downloadFreeBSD-src-6265a3bb38f222a8b8d7a444d36e9d6d56ef2126.zip
FreeBSD-src-6265a3bb38f222a8b8d7a444d36e9d6d56ef2126.tar.gz
Another place where malloc is expected to return zero'ed storage.
(Found with phkmalloc/2 (TNG!) send me email if you want a copy.)
Diffstat (limited to 'usr.bin/tn3270')
-rw-r--r--usr.bin/tn3270/tools/mkhits/dohits.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/tn3270/tools/mkhits/dohits.c b/usr.bin/tn3270/tools/mkhits/dohits.c
index afa36af..4e3dadb 100644
--- a/usr.bin/tn3270/tools/mkhits/dohits.c
+++ b/usr.bin/tn3270/tools/mkhits/dohits.c
@@ -101,6 +101,7 @@ int value;
item = &firstentry(second);
this = (struct thing *) malloc(sizeof *this);
+ memset((void*)this,0,sizeof *this);
this->next = *item;
*item = this;
this->value = value;
OpenPOWER on IntegriCloud