mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
kv/memdb: fix uninitialized return of MemDB::_init().
Without this fix GCC complains: ``` src/kv/MemDB.cc:179:10: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] 179 | return r; ``` Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
parent
7d691a0388
commit
72454ef712
@ -151,7 +151,7 @@ int MemDB::_load()
|
||||
|
||||
int MemDB::_init(bool create)
|
||||
{
|
||||
int r;
|
||||
int r = 0;
|
||||
dout(1) << __func__ << dendl;
|
||||
if (create) {
|
||||
if (fs::exists(m_db_path)) {
|
||||
|
Loading…
Reference in New Issue
Block a user