summaryrefslogtreecommitdiff
path: root/src/json/json_helper.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-05 19:29:00 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-05 19:29:00 +0200
commitda15a59717fcf824569cbd647641c572405eb678 (patch)
tree1b4b7478d04570d080541c74a9d455c8275fa1da /src/json/json_helper.c
parentf36fe8c22cb0de29dbd0e729c880058c08cbec27 (diff)
downloadexchange-da15a59717fcf824569cbd647641c572405eb678.tar.gz
exchange-da15a59717fcf824569cbd647641c572405eb678.tar.bz2
exchange-da15a59717fcf824569cbd647641c572405eb678.zip
omit charset from en_US.UTF-8 env variable when picking i18n strings, handle no preference case
Diffstat (limited to 'src/json/json_helper.c')
-rw-r--r--src/json/json_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index e8c6d4cb..c3788f86 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -419,7 +419,8 @@ parse_i18n_string (void *cls,
val = json_object_get (root,
ctx->field);
- if (NULL != i18n)
+ if ( (NULL != i18n) &&
+ (NULL != ctx->lp) )
{
double best = 0.0;
json_t *pos;