Re: [PATCH] hw/xtensa: replace calloc with g_new0 in mx_pic
Philippe Mathieu-Daudé <[email protected]> Tue, 30 Jun 2026 19:13:37 +0200
| Newsgroups | org.nongnu.qemu-trivial,org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
On 4/6/26 18:28, Ajinkya Udgirkar wrote: > Replace libc calloc() with GLib g_new0() for consistency with the > rest of the QEMU codebase. g_new0() aborts on allocation failure > rather than returning NULL, which matches QEMU's allocation policy. > > Signed-off-by: Ajinkya Udgirkar <[email protected]> > --- > hw/xtensa/mx_pic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Merged as commit 19bb5635a0c37435b7897abb2810665acc8c2f1f.