[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 3/4] lxc: Initialize dst due to potential cleanup usage before setting



On 01/08/2013 11:41 PM, John Ferlan wrote:
---
  src/lxc/lxc_driver.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index 8050ce6..8457ae9 100644
--- a/src/lxc/lxc_driver.c
+++ b/src/lxc/lxc_driver.c
@@ -3102,7 +3102,7 @@ lxcDomainAttachDeviceDiskLive(virLXCDriverPtr driver,
      virDomainDiskDefPtr def = dev->data.disk;
      virCgroupPtr group = NULL;
      int ret = -1;
-    char *dst;
+    char *dst = NULL;
      struct stat sb;
      bool created = false;
      mode_t mode = 0;

   ACK


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]