diff options
| author | Peng Wu <alexepico@gmail.com> | 2016-02-03 09:22:28 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2016-02-03 09:22:28 +0800 |
| commit | 2e80a5f6f7864c8fd4dba2878102681a4ea4b407 (patch) | |
| tree | 408e2ca4e446e86298834814acc5153aff04c711 /src/storage/ngram_bdb.cpp | |
| parent | f9c65e5be707abd028638636bda46062aa9fff23 (diff) | |
| download | libpinyin-2e80a5f6f7864c8fd4dba2878102681a4ea4b407.tar.gz libpinyin-2e80a5f6f7864c8fd4dba2878102681a4ea4b407.tar.xz libpinyin-2e80a5f6f7864c8fd4dba2878102681a4ea4b407.zip | |
fixes typos
Diffstat (limited to 'src/storage/ngram_bdb.cpp')
| -rw-r--r-- | src/storage/ngram_bdb.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/storage/ngram_bdb.cpp b/src/storage/ngram_bdb.cpp index 3d4a571..e0c2479 100644 --- a/src/storage/ngram_bdb.cpp +++ b/src/storage/ngram_bdb.cpp @@ -37,11 +37,11 @@ Bigram::~Bigram(){ } void Bigram::reset(){ - if ( m_db ){ + if ( m_db ){ m_db->sync(m_db, 0); - m_db->close(m_db, 0); - m_db = NULL; - } + m_db->close(m_db, 0); + m_db = NULL; + } } bool Bigram::load_db(const char * dbfile){ |
