diff options
-rw-r--r-- | common/entitybuffer.cpp | 1 | ||||
-rw-r--r-- | common/storage_lmdb.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/common/entitybuffer.cpp b/common/entitybuffer.cpp index 0e5435a..344bccc 100644 --- a/common/entitybuffer.cpp +++ b/common/entitybuffer.cpp | |||
@@ -25,6 +25,7 @@ bool EntityBuffer::isValid() const | |||
25 | 25 | ||
26 | const Sink::Entity &EntityBuffer::entity() | 26 | const Sink::Entity &EntityBuffer::entity() |
27 | { | 27 | { |
28 | Q_ASSERT(mEntity); | ||
28 | return *mEntity; | 29 | return *mEntity; |
29 | } | 30 | } |
30 | 31 | ||
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 8b29681..893c37c 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -463,7 +463,7 @@ QList<QByteArray> Storage::Transaction::getDatabaseNames() const | |||
463 | MDB_val data; | 463 | MDB_val data; |
464 | MDB_cursor *cursor; | 464 | MDB_cursor *cursor; |
465 | 465 | ||
466 | rc = mdb_cursor_open(d->transaction, d->dbi, &cursor); | 466 | mdb_cursor_open(d->transaction, d->dbi, &cursor); |
467 | if ((rc = mdb_cursor_get(cursor, &key, &data, MDB_FIRST)) == 0) { | 467 | if ((rc = mdb_cursor_get(cursor, &key, &data, MDB_FIRST)) == 0) { |
468 | list << QByteArray::fromRawData((char*)key.mv_data, key.mv_size); | 468 | list << QByteArray::fromRawData((char*)key.mv_data, key.mv_size); |
469 | while ((rc = mdb_cursor_get(cursor, &key, &data, MDB_NEXT)) == 0) { | 469 | while ((rc = mdb_cursor_get(cursor, &key, &data, MDB_NEXT)) == 0) { |