Re: [PATCH 02/10] Drop checks for virURIFormat() retval

2023-02-06 Thread Peter Krempa
On Mon, Feb 06, 2023 at 10:16:50 +0100, Michal Privoznik wrote: > The virURIFormat() function either returns a string, or aborts > (on OOM). There's no way this function can return NULL (as of > v7.2.0-rc1~277). Therefore, it doesn't make sense to check its > retval against NULL. > >

[PATCH 02/10] Drop checks for virURIFormat() retval

2023-02-06 Thread Michal Privoznik
The virURIFormat() function either returns a string, or aborts (on OOM). There's no way this function can return NULL (as of v7.2.0-rc1~277). Therefore, it doesn't make sense to check its retval against NULL. Signed-off-by: Michal Privoznik --- src/admin/libvirt-admin.c | 6 +-