summaryrefslogtreecommitdiff
path: root/ext/fts3/fts3_icu.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fts3/fts3_icu.c')
-rw-r--r--ext/fts3/fts3_icu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/fts3/fts3_icu.c b/ext/fts3/fts3_icu.c
index a10a55d..5e9c900 100644
--- a/ext/fts3/fts3_icu.c
+++ b/ext/fts3/fts3_icu.c
@@ -110,7 +110,10 @@ static int icuOpen(
*ppCursor = 0;
- if( nInput<0 ){
+ if( zInput==0 ){
+ nInput = 0;
+ zInput = "";
+ }else if( nInput<0 ){
nInput = strlen(zInput);
}
nChar = nInput+1;