]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kv/RocksDBStore: always initialize local variable 42474/head
authorKefu Chai <kchai@redhat.com>
Sat, 24 Jul 2021 13:19:26 +0000 (21:19 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 24 Jul 2021 13:31:15 +0000 (21:31 +0800)
commit2e3f4689a13cbb59435bff022bba236f2a35f3b8
treed790142b0f17999aafeddbffe82ac5b4d5685fa0
parent65c65f7cf47d99b4fc1e6af37985cbe9f3de03c4
kv/RocksDBStore: always initialize local variable

silences following warning from GCC:

 ../src/kv/RocksDBStore.cc:386:7: warning: â€˜r’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   386 |       if (r < 0) {
       |       ^~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/kv/RocksDBStore.cc