# HG changeset patch # User Matti Hamalainen # Date 1455475089 -7200 # Node ID 29a080678091e074cefc9d83b6398a741721bc43 # Parent d9f38d6574339c028fdaf21ed699492ae4f9dc1b Use th_calloc() here. diff -r d9f38d657433 -r 29a080678091 sidlib.c --- 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,