|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH 06/11] audio/alsaaudio: use g_new0() instead of audio_calloc() |
Date: | Sun, 18 Dec 2022 18:24:41 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 |
On 18/12/22 18:15, Volker Rümelin wrote:
Replace audio_calloc() with the equivalent g_new0(). The value of the g_new0() argument count is >= 1, which means g_new0() will never return NULL. Also remove the unnecessary NULL check.
Yes, since commit 7267c0947d (Sat Aug 20 22:09:37 2011)... Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de> --- audio/alsaaudio.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
[Prev in Thread] | Current Thread | [Next in Thread] |