Skip to content

Commit

Permalink
Fix LibPinyinBackEnd::exportPinyinDictionary method
Browse files Browse the repository at this point in the history
  • Loading branch information
epico committed Aug 7, 2024
1 parent e9935e4 commit 1a88675
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PYLibPinyin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ LibPinyinBackEnd::exportBigramPhrase (FILE *dictfile)
gboolean
LibPinyinBackEnd::exportPinyinDictionary (const char *filename)
{
if (NULL == m_pinyin_context)
return FALSE;

/* user phrase library should be already loaded here. */
FILE * dictfile = fopen (filename, "w");
if (NULL == dictfile)
Expand Down

0 comments on commit 1a88675

Please sign in to comment.