提交 af4d39f8 编写于 作者: D Daniel P. Berrange

Ensure max_id is initialized in linuxParseCPUmap()

上级 31047e2b
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册