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

virFileNBDDeviceAssociate: Avoid use of uninitialized variable

The @qemunbd variable can be used uninitialized.

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