From: Andre Noll Date: Sun, 24 Oct 2010 17:23:25 +0000 (+0200) Subject: vss: Initialize all bytes of the FEC header. X-Git-Tag: v0.4.6~19^2~9 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e386c19376fa959b91710145923149d2d5dfbb29;p=paraslash.git vss: Initialize all bytes of the FEC header. Does not matter much but makes valgrind happier. --- diff --git a/vss.c b/vss.c index 916a71d5..21ac3747 100644 --- a/vss.c +++ b/vss.c @@ -211,10 +211,11 @@ static void write_fec_header(struct fec_client *fc, struct vss_task *vsst) write_u32(buf + 14, g->bytes); write_u8(buf + 18, fc->current_slice_num); + write_u8(buf + 19, 0); /* unused */ write_u16(buf + 20, g->slice_bytes); write_u8(buf + 22, g->first_chunk? 0 : 1); write_u8(buf + 23, vsst->header_len? 1 : 0); - memset(buf + 24, 0, 7); + memset(buf + 24, 0, 8); } static bool need_audio_header(struct fec_client *fc, struct vss_task *vsst)