[libvirt] [PATCH] apparmor: Fix uninitalized variable warning in virt-aa-helper

Matthias Bolte matthias.bolte at googlemail.com
Sat May 7 11:13:41 UTC 2011


---
 src/security/virt-aa-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index a4e8549..e481095 100644
--- a/src/security/virt-aa-helper.c
+++ b/src/security/virt-aa-helper.c
@@ -245,7 +245,7 @@ update_include_file(const char *include_file, const char *included_files,
                     bool append)
 {
     int rc = -1;
-    int plen, flen;
+    int plen, flen = 0;
     int fd;
     char *pcontent = NULL;
     char *existing = NULL;
-- 
1.7.0.4




More information about the libvir-list mailing list