提交 2f4d266d 编写于 作者: J Ján Tomko 提交者: Cole Robinson

conf: fix uninitialized variable in virDomainListSnapshots

If allocation of names fails, list is uninitialized.
(cherry picked from commit 892582f9)
上级 e8d28ec3
......@@ -935,7 +935,7 @@ virDomainListSnapshots(virDomainSnapshotObjListPtr snapshots,
unsigned int flags)
{
int count = virDomainSnapshotObjListNum(snapshots, from, flags);
virDomainSnapshotPtr *list;
virDomainSnapshotPtr *list = NULL;
char **names;
int ret = -1;
int i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册