From f36fe8c22cb0de29dbd0e729c880058c08cbec27 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 5 Apr 2021 19:27:53 +0200 Subject: [PATCH] omit charset from en_US.UTF-8 env variable when picking i18n strings --- src/json/json_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/json/json_helper.c b/src/json/json_helper.c index b39500f75..e8c6d4cbc 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;