]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/audio/asc: replace g_malloc0() with g_malloc()
authorVolker Rümelin <vr_qemu@t-online.de>
Thu, 15 May 2025 05:44:27 +0000 (07:44 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 25 May 2025 09:28:28 +0000 (11:28 +0200)
commitf4b1c3db11317c4bce18fa3bbb025df7c22ea54c
treed23045fccf5d4be09f04996eaea8b6e62ef9c51d
parentd009f26a54f573468be721590a19350c224bc730
hw/audio/asc: replace g_malloc0() with g_malloc()

There is no need to allocate initialized memory with g_malloc0()
if it's directly followed by a memset() function call. g_malloc()
is sufficient.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20250515054429.7385-5-vr_qemu@t-online.de>
hw/audio/asc.c