diff -Naur bacula-5.2.6.old/src/filed/xattr.c bacula-5.2.6/src/filed/xattr.c --- bacula-5.2.6.old/src/filed/xattr.c 2012-05-24 14:16:04.413581814 +0200 +++ bacula-5.2.6/src/filed/xattr.c 2012-05-24 14:18:19.439600409 +0200 @@ -448,6 +448,7 @@ * Each xattr valuepair starts with a magic so we can parse it easier. */ current_xattr = (xattr_t *)malloc(sizeof(xattr_t)); + memset(current_xattr, 0, sizeof(xattr_t)); current_xattr->magic = XATTR_MAGIC; expected_serialize_len += sizeof(current_xattr->magic);