]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: entity_addr_t::parse doesn't do memset(this, 0, ...) for clean-up. 23573/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 14 Aug 2018 13:51:45 +0000 (15:51 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 14 Aug 2018 13:54:48 +0000 (15:54 +0200)
Fixes: http://tracker.ceph.com/issues/26937
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/msg/msg_types.cc

index 5b86be48cdcce6dcffd763df9b99d1c860cc67ef..3b9fc7c17ad36d70e7c5ab428034176ccb2ad35c 100644 (file)
@@ -64,7 +64,7 @@ void entity_inst_t::generate_test_instances(list<entity_inst_t*>& o)
 
 bool entity_addr_t::parse(const char *s, const char **end)
 {
-  memset(this, 0, sizeof(*this));
+  *this = entity_addr_t();
 
   const char *start = s;