提交 28ca8b38 编写于 作者: M Michal Privoznik 提交者: Eric Blake

virFileNBDDeviceAssociate: Avoid use of uninitialized variable

The @qemunbd variable can be used uninitialized.

(cherry picked from commit 2dba0323)
上级 4f4e1cbf
......@@ -728,7 +728,7 @@ int virFileNBDDeviceAssociate(const char *file,
char **dev)
{
char *nbddev;
char *qemunbd;
char *qemunbd = NULL;
virCommandPtr cmd = NULL;
int ret = -1;
const char *fmtstr = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册