Skip to content

Commit

Permalink
Workaround some Android devices failed to load ICU functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
John-He-928 committed Jul 21, 2017
1 parent 2a09e43 commit 9beffc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fts/mm_cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ int sqlite3_register_mm_cipher(sqlite3 *db, const unsigned char *key)
int sqlite_err;
mm_cipher_context_t *ctx;

// XXX: if we failed to load ICU functions, just skip initializing.
if (!ucnv_openCCSID)
return SQLITE_OK;

ctx = sqlite3_malloc(sizeof(mm_cipher_context_t));
if (!ctx)
return SQLITE_NOMEM;
Expand Down

0 comments on commit 9beffc6

Please sign in to comment.