From: Anssi Hannula Date: Sat, 11 May 2019 22:48:43 +0000 (+0300) Subject: en50221: fix invalid htsmsg manipulation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f033b21316cf7185e6189f4a751ba382117d13ed;p=thirdparty%2Ftvheadend.git en50221: fix invalid htsmsg manipulation htsmsg_add_msg() frees the provided submsg and returns a new pointer to it. Fix code in getmenutext() to use the returned pointer instead of the now invalid original pointer. --- diff --git a/src/input/mpegts/en50221/en50221_apps.c b/src/input/mpegts/en50221/en50221_apps.c index a948bc147..e89d8fcf7 100644 --- a/src/input/mpegts/en50221/en50221_apps.c +++ b/src/input/mpegts/en50221/en50221_apps.c @@ -501,7 +501,7 @@ getmenutext c = htsmsg_get_list(app->cia_menu, key); if (c == NULL) { c = htsmsg_create_list(); - htsmsg_add_msg(app->cia_menu, key, c); + c = htsmsg_add_msg(app->cia_menu, key, c); } tvhtrace(LS_EN50221, "%s: add to %s '%s'", app->cia_name, key, txt); htsmsg_add_str(c, NULL, txt);