commit a14e263ac512c66dfd6e40e8af4f6b87dd410cdf
parent 4d1319daadf9d2ebd656fe207c3dc653fdaa5413
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Wed, 13 Dec 2023 12:51:19 +0900
do not return the same language more than once in the list
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c
@@ -260,7 +260,8 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn,
{
langs = GNUNET_strdup (p->language);
}
- else
+ else if (NULL == strstr (langs,
+ p->language))
{
char *tmp = langs;