Re: [PATCH] vbox: Drop needless g_new0(..., 0) in vbox_snapshot_conf.c

2024-04-12 Thread Pavel Hrdina
On Fri, Apr 12, 2024 at 08:52:37PM +0200, Michal Privoznik wrote: > clang on Fedora started to complain about some calls to g_new0() > we're making in vbox_snapshot_conf.c. Specifically, we're passing > zero as number of elements to allocate. And while usually SA > tools are not clever, in this spe

[PATCH] vbox: Drop needless g_new0(..., 0) in vbox_snapshot_conf.c

2024-04-12 Thread Michal Privoznik
clang on Fedora started to complain about some calls to g_new0() we're making in vbox_snapshot_conf.c. Specifically, we're passing zero as number of elements to allocate. And while usually SA tools are not clever, in this specific case clang is right. There are three cases where such call is made,