Mercurial > hg > sidinfo
changeset 99:29a080678091
Use th_calloc() here.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 14 Feb 2016 20:38:09 +0200 |
parents | d9f38d657433 |
children | be62e4abe3a9 |
files | sidlib.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sidlib.c Sun Feb 14 07:54:00 2016 +0200 +++ b/sidlib.c Sun Feb 14 20:38:09 2016 +0200 @@ -319,7 +319,7 @@ if (node->nlengths == 0) goto error; - node->lengths = (int *) th_malloc0(node->nlengths * sizeof(int)); + node->lengths = (int *) th_calloc(node->nlengths, sizeof(int)); if (node->lengths == NULL) { th_io_error(ctx, THERR_MALLOC,