diff options
author | Mark Wielaard <[email protected]> | 2020-11-01 23:45:32 +0100 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2020-11-01 23:45:32 +0100 |
commit | 8dd97a0a871672b3f7a58e1fb50b6f7195d8f32d (patch) | |
tree | 3a86d4fb1d7abf6966ff94a1e25f13f7e1809c48 /libasm/asm_align.c | |
parent | 50a6eeef7d87623faa65126dc3d16c2a8e613aea (diff) | |
parent | b503c358dde835d8a1ae3ebd4968755ff396f814 (diff) |
Merge tag 'elfutils-0.182' into mjw/RH-DTSdts-0.182
elfutils 0.182 release
Diffstat (limited to 'libasm/asm_align.c')
-rw-r--r-- | libasm/asm_align.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libasm/asm_align.c b/libasm/asm_align.c index e59a070e..c8c671b2 100644 --- a/libasm/asm_align.c +++ b/libasm/asm_align.c @@ -143,7 +143,7 @@ __libasm_ensure_section_space (AsmScn_t *asmscn, size_t len) /* This is the first block. */ size = MAX (2 * len, 960); - asmscn->content = (struct AsmData *) malloc (sizeof (struct AsmData) + asmscn->content = (struct AsmData *) calloc (1, sizeof (struct AsmData) + size); if (asmscn->content == NULL) return -1; @@ -160,7 +160,7 @@ __libasm_ensure_section_space (AsmScn_t *asmscn, size_t len) size = MAX (2 *len, MIN (32768, 2 * asmscn->offset)); - newp = (struct AsmData *) malloc (sizeof (struct AsmData) + size); + newp = (struct AsmData *) calloc (1, sizeof (struct AsmData) + size); if (newp == NULL) return -1; |