summaryrefslogtreecommitdiff
path: root/src/json/json_helper.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-05 19:27:53 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-05 19:27:53 +0200
commitf36fe8c22cb0de29dbd0e729c880058c08cbec27 (patch)
treef66f0560d068e51aa2be3596c8cc25c6f5f19ae8 /src/json/json_helper.c
parent63c6654c0f41b8a8d9c436c2735e7392dd2b59bf (diff)
downloadexchange-f36fe8c22cb0de29dbd0e729c880058c08cbec27.tar.gz
exchange-f36fe8c22cb0de29dbd0e729c880058c08cbec27.tar.bz2
exchange-f36fe8c22cb0de29dbd0e729c880058c08cbec27.zip
omit charset from en_US.UTF-8 env variable when picking i18n strings
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 b39500f7..e8c6d4cb 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -487,7 +487,8 @@ TALER_JSON_spec_i18n_string (const char *name,
.size_ptr = NULL
};
- ctx->lp = GNUNET_strdup (language_pattern);
+ ctx->lp = (NULL != language_pattern) ? GNUNET_strdup (language_pattern) :
+ NULL;
ctx->field = name;
*strptr = NULL;
return ret;