]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/rbd: assert(g_ceph_context) not g_conf 23008/head
authorKefu Chai <kchai@redhat.com>
Thu, 12 Jul 2018 14:28:44 +0000 (22:28 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 12 Jul 2018 14:28:46 +0000 (22:28 +0800)
commit813cd5d5910c266c076d38277eddf32d908d5ae3
tree3ff9b13250b151f229403df64ac0b4358b13ace7
parent360211ed7b8b0c3a87432ae13e189a51a1e9a026
tools/rbd: assert(g_ceph_context) not g_conf

this addresses a warning introduced by f528475d:

src/tools/rbd/action/Create.cc:59:19: warning: the address of
'ConfigProxy& g_conf()' will never be NULL [-Waddress]
     assert(g_conf != nullptr);
            ~~~~~~~^~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/rbd/action/Create.cc