diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-08-03 12:21:13 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-08-03 12:21:13 +0300 |
commit | 769f6d2db72dd70ff2fef69bed02fb4124a682ab (patch) | |
tree | 043c2b7e3fb50a295914eb1f3bb0e767614c2070 /sql/wsrep_xid.cc | |
parent | 0d3972c6bef357dfd4aef0ecdb03b5ac34844e45 (diff) | |
download | mariadb-git-769f6d2db72dd70ff2fef69bed02fb4124a682ab.tar.gz |
Fix -Wclass-memaccess in WSREP,InnoDB,XtraDB
Diffstat (limited to 'sql/wsrep_xid.cc')
-rw-r--r-- | sql/wsrep_xid.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/wsrep_xid.cc b/sql/wsrep_xid.cc index f7ea836d494..132956e88b3 100644 --- a/sql/wsrep_xid.cc +++ b/sql/wsrep_xid.cc @@ -129,12 +129,11 @@ void wsrep_get_SE_checkpoint(wsrep_uuid_t& uuid, wsrep_seqno_t& seqno) seqno= WSREP_SEQNO_UNDEFINED; XID xid; - memset(&xid, 0, sizeof(xid)); - xid.formatID= -1; + xid.null(); wsrep_get_SE_checkpoint(xid); - if (xid.formatID == -1) return; // nil XID + if (xid.is_null()) return; if (!wsrep_is_wsrep_xid(&xid)) { |