diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-06-23 12:42:57 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-06-23 12:42:57 +0300 |
commit | ec2e54b2c075f30e9499adea22681499e3f6582d (patch) | |
tree | eead84bdf1f41b78f90f00c13e02dd59eae92133 /extension/gawkfts.c | |
parent | 9ccddb999bb2d79c261702f789deb9371090a4ec (diff) | |
parent | 44e29458a6355ad64e8d89676a441b224ce76cbc (diff) | |
download | egawk-ec2e54b2c075f30e9499adea22681499e3f6582d.tar.gz egawk-ec2e54b2c075f30e9499adea22681499e3f6582d.tar.bz2 egawk-ec2e54b2c075f30e9499adea22681499e3f6582d.zip |
Merge branch 'master' into feature/api-mpfr
Diffstat (limited to 'extension/gawkfts.c')
-rw-r--r-- | extension/gawkfts.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extension/gawkfts.c b/extension/gawkfts.c index 4a712153..d9edd87f 100644 --- a/extension/gawkfts.c +++ b/extension/gawkfts.c @@ -162,9 +162,8 @@ fts_open(char * const *argv, int options, } /* Allocate/initialize the stream */ - if ((sp = malloc((unsigned int)sizeof(FTS))) == NULL) + if ((sp = calloc(1, (unsigned int)sizeof(FTS))) == NULL) return (NULL); - memset(sp, 0, sizeof(FTS)); sp->fts_compar = compar; sp->fts_options = options; |