]> xenbits.xensource.com Git - libvirt.git/commitdiff
apparmor: Fix uninitalized variable warning in virt-aa-helper
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 7 May 2011 11:13:41 +0000 (13:13 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 10 May 2011 06:03:31 +0000 (08:03 +0200)
src/security/virt-aa-helper.c

index a4e8549d43e4c3125593498fb5af4d9af2af0221..e481095734032b78ab79dca797984be38f610b27 100644 (file)
@@ -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;