]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
auth/cephx: always initialize local variables 31154/head
authorKefu Chai <kchai@redhat.com>
Fri, 25 Oct 2019 08:42:55 +0000 (16:42 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 25 Oct 2019 08:44:53 +0000 (16:44 +0800)
commit770b443e747a046caddd280aabeb6fc0dbefa3ce
tree55989f7c47dc3b1b005aad1e0fdad8997f78f822
parent4ea43f734254871c575761f0be4d859fd7f2a172
auth/cephx: always initialize local variables

to silence GCC warnings like:

rc/auth/cephx/CephxProtocol.h:309:5: warning: 'type' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (i != tickets_map.end())
     ^~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/auth/cephx/CephxProtocol.cc