Re: [PATCH] lib: Don't check for retval for virCommandNew*()

2022-08-23 Thread Laine Stump
On 8/23/22 9:51 AM, Michal Privoznik wrote: The virCommand module is specifically designed so that no caller has to check for retval of individual virCommand*() APIs except for virCommandRun() where the actual error is reported. Moreover, virCommandNew*() use g_new0() to allocate memory and thus

[PATCH] lib: Don't check for retval for virCommandNew*()

2022-08-23 Thread Michal Privoznik
The virCommand module is specifically designed so that no caller has to check for retval of individual virCommand*() APIs except for virCommandRun() where the actual error is reported. Moreover, virCommandNew*() use g_new0() to allocate memory and thus it's not really possible for those APIs to ret