mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Ensure max_id is initialized in linuxParseCPUmap()
This commit is contained in:
parent
31047e2ba3
commit
af4d39f84d
@ -581,7 +581,7 @@ linuxParseCPUmap(int *max_cpuid, const char *path)
|
||||
{
|
||||
char *map = NULL;
|
||||
char *str = NULL;
|
||||
int max_id, i;
|
||||
int max_id = 0, i;
|
||||
|
||||
if (virFileReadAll(path, 5 * VIR_DOMAIN_CPUMASK_LEN, &str) < 0) {
|
||||
virReportOOMError();
|
||||
|
Loading…
x
Reference in New Issue
Block a user