From: Jaroslav Kysela Date: Mon, 22 May 2017 07:51:33 +0000 (+0200) Subject: htsmsg binary: intialize correctly hm_data_size and hm_islist fields on deserialize X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=074039b837d7a5a3af1df3b067ee3fd61a45b4a4;p=thirdparty%2Ftvheadend.git htsmsg binary: intialize correctly hm_data_size and hm_islist fields on deserialize --- diff --git a/src/htsmsg_binary.c b/src/htsmsg_binary.c index 21c5071f9..d4bbf3532 100644 --- a/src/htsmsg_binary.c +++ b/src/htsmsg_binary.c @@ -105,6 +105,8 @@ htsmsg_binary_des0(htsmsg_t *msg, const uint8_t *buf, size_t len) sub = &f->hmf_msg; TAILQ_INIT(&sub->hm_fields); sub->hm_data = NULL; + sub->hm_data_size = 0; + sub->hm_islist = type == HMF_LIST; i = htsmsg_binary_des0(sub, buf, datalen); if (i < 0) { #if ENABLE_SLOW_MEMORYINFO