]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[opcodes] ARC + PPC: Fix -Walloc-size warnings
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Tue, 21 Nov 2023 16:53:44 +0000 (17:53 +0100)
committerJan-Benedict Glaw <jbglaw@lug-owl.de>
Tue, 21 Nov 2023 16:54:49 +0000 (17:54 +0100)
commit54195469c18ec9873cc5ba6907f768509473fa9b
tree93fd5a561c885fde85605f1cae11ce860dbae41a
parent790ce1f70c25129b35e060329cdf2915a6def9fd
[opcodes] ARC + PPC: Fix -Walloc-size warnings

Recently, -Walloc-size warnings started to kick in. Fix these two
calloc() calls to match the intended usage pattern.

opcodes/ChangeLog:

* arc-dis.c (init_arc_disasm_info): Fix calloc() call.
* ppc-dis.c (powerpc_init_dialect): Ditto.
opcodes/arc-dis.c
opcodes/ppc-dis.c