]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: Do not memset uuid_d
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 9 May 2018 01:54:21 +0000 (21:54 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 9 May 2018 17:26:29 +0000 (13:26 -0400)
It is perfectly able to default initialize itself.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/tools/osdmaptool.cc

index faf1f750fb8ad2ac1b2c17c1b9e0064032939cf7..8847589b1a0be796f1d5af9c4c828fcbfadf69f6 100644 (file)
@@ -308,7 +308,6 @@ int main(int argc, const char **argv)
       num_osd = -1;
     }
     uuid_d fsid;
-    memset(&fsid, 0, sizeof(uuid_d));
     if (createpool) {
       osdmap.build_simple_with_pool(
        g_ceph_context, 0, fsid, num_osd, pg_bits, pgp_bits);