Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: comet - fix wrong memory access
  • Loading branch information
perexg committed Oct 24, 2015
1 parent bfb24ea commit a525902
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/webui/comet.c
Expand Up @@ -342,9 +342,12 @@ comet_done(void)
static void
comet_mailbox_rewrite_str(htsmsg_t *m, const char *key, const char *lang)
{
const char *s = htsmsg_get_str(m, key);
if (s)
htsmsg_set_str(m, key, tvh_gettext_lang(lang, s));
const char *s = htsmsg_get_str(m, key), *p;
if (s) {
p = tvh_gettext_lang(lang, s);
if (p != s)
htsmsg_set_str(m, key, p);
}
}

static void
Expand Down

0 comments on commit a525902

Please sign in to comment.