From: Casey Bodley Date: Thu, 25 Jan 2024 14:45:08 +0000 (-0500) Subject: mon: zero-initialize MonCommand::flags X-Git-Tag: v19.3.0~160^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F55315%2Fhead;p=ceph.git mon: zero-initialize MonCommand::flags causing failures in check-generated.sh: 2 MonCommand /tmp/typ-qmnDZ1ahR /tmp/typ-lIgJTZiUe differ: byte 100, line 6 **** MonCommand test 1 dump_json check failed **** ceph-dencoder type MonCommand select_test 1 dump_json > /tmp/typ-qmnDZ1ahR ceph-dencoder type MonCommand select_test 1 encode decode dump_json > /tmp/typ-lIgJTZiUe 6c6 < "flags": 94661933599904 --- > "flags": 94342467308704 Signed-off-by: Casey Bodley --- diff --git a/src/mon/MonCommand.h b/src/mon/MonCommand.h index 5caebfc6f13..2421229c84d 100644 --- a/src/mon/MonCommand.h +++ b/src/mon/MonCommand.h @@ -22,7 +22,7 @@ struct MonCommand { std::string helpstring; std::string module; std::string req_perms; - uint64_t flags; + uint64_t flags = 0; // MonCommand flags static const uint64_t FLAG_NONE = 0;