]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: initialize dummy xattr buffer
authorSage Weil <sage@newdream.net>
Wed, 30 May 2012 16:13:48 +0000 (09:13 -0700)
committerSage Weil <sage@newdream.net>
Wed, 30 May 2012 16:13:48 +0000 (09:13 -0700)
Shut up valgrind.

Signed-off-by: Sage Weil <sage@newdream.net>
src/os/FileStore.cc

index 6b0ae1a78f8f42f829649a6d37f9cadc60687d79..da0dea094da80624426af9a8b53525e790fa76d6 100644 (file)
@@ -1269,6 +1269,7 @@ int FileStore::_detect_fs()
   }
 
   char buf[1000];
+  memset(buf, 0, sizeof(buf)); // shut up valgrind
   do_setxattr(fn, "user.test", &buf, sizeof(buf));
   do_setxattr(fn, "user.test2", &buf, sizeof(buf));
   do_setxattr(fn, "user.test3", &buf, sizeof(buf));