diff options
author | Peng Wu <alexepico@gmail.com> | 2016-07-20 12:06:11 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-07-20 12:06:11 +0800 |
commit | c31c421466a183ac4e207d8cf57850648b954d45 (patch) | |
tree | eb79f8ac7c95f7d1e8f20b7c008a47129eef84c5 /src/storage | |
parent | 5d6852f3b122676bd15b371a416888392ae6fe09 (diff) | |
download | libpinyin-c31c421466a183ac4e207d8cf57850648b954d45.tar.gz libpinyin-c31c421466a183ac4e207d8cf57850648b954d45.tar.xz libpinyin-c31c421466a183ac4e207d8cf57850648b954d45.zip |
fixes warnings
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/phrase_index_logger.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storage/phrase_index_logger.h b/src/storage/phrase_index_logger.h index ae00009..a86ef50 100644 --- a/src/storage/phrase_index_logger.h +++ b/src/storage/phrase_index_logger.h @@ -158,6 +158,9 @@ public: */ bool next_record(LOG_TYPE & log_type, phrase_token_t & token, MemoryChunk * oldone, MemoryChunk * newone){ + log_type = LOG_INVALID_RECORD; + token = null_token; + size_t offset = m_offset; m_chunk->get_content(offset, &log_type, sizeof(LOG_TYPE)); offset += sizeof(LOG_TYPE); |