forked from pool/libvirt
22 lines
702 B
Diff
22 lines
702 B
Diff
|
commit 2dba0323ff0cec31bdcea9dd3b2428af297401f2
|
||
|
Author: Michal Privoznik <mprivozn@redhat.com>
|
||
|
Date: Tue Sep 3 18:56:06 2013 +0200
|
||
|
|
||
|
virFileNBDDeviceAssociate: Avoid use of uninitialized variable
|
||
|
|
||
|
The @qemunbd variable can be used uninitialized.
|
||
|
|
||
|
Index: libvirt-1.1.2/src/util/virfile.c
|
||
|
===================================================================
|
||
|
--- libvirt-1.1.2.orig/src/util/virfile.c
|
||
|
+++ libvirt-1.1.2/src/util/virfile.c
|
||
|
@@ -732,7 +732,7 @@ int virFileNBDDeviceAssociate(const char
|
||
|
char **dev)
|
||
|
{
|
||
|
char *nbddev;
|
||
|
- char *qemunbd;
|
||
|
+ char *qemunbd = NULL;
|
||
|
virCommandPtr cmd = NULL;
|
||
|
int ret = -1;
|
||
|
const char *fmtstr = NULL;
|