diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-10 15:33:17 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-11 15:36:06 -0800 |
commit | 1fb639c97fc28b8ed66b5553eafbbeed07e4cb09 (patch) | |
tree | 9d8da033bf81897198e4ca47b5e5b6efe4a3a90f /compat.c | |
parent | 8e58b7949ab96180d60fb13f7820d6cc01c228ae (diff) |
Replace malloc()+bzero() pairs with calloc() calls
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'compat.c')
-rw-r--r-- | compat.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -158,10 +158,9 @@ NextInterp(CompatInfo * info) { SymInterpInfo *si; - si = malloc(sizeof(SymInterpInfo)); + si = calloc(1, sizeof(SymInterpInfo)); if (si) { - bzero(si, sizeof(SymInterpInfo)); info->interps = (SymInterpInfo *) AddCommonInfo(&info->interps->defs, (CommonInfo *) si); |