mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
Fix the recent CI build failures
After commitse2087c2
andec0793de
older GCC started act very smart and complain about potentially uninitialized variable, which existed prior to these patches + even if the affected vars were left uninitialized the function responsible for filling them in would have failed with NULL being returned which the caller has always handled carefully. Although GCC complained only about a single variable, let's initialize all of them so as to prevent any further potential breakages. Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
397369853d
commit
26adfe7596
@ -18400,9 +18400,9 @@ virDomainThreadSchedParseHelper(xmlNodePtr node,
|
||||
virDomainDefPtr def)
|
||||
{
|
||||
ssize_t next = -1;
|
||||
virDomainThreadSchedParamPtr sched;
|
||||
virProcessSchedPolicy policy;
|
||||
int priority;
|
||||
virDomainThreadSchedParamPtr sched = NULL;
|
||||
virProcessSchedPolicy policy = 0;
|
||||
int priority = 0;
|
||||
VIR_AUTOPTR(virBitmap) map = NULL;
|
||||
|
||||
if (!(map = virDomainSchedulerParse(node, name, &policy, &priority)))
|
||||
|
Loading…
Reference in New Issue
Block a user