From 3af3e54a6f287b9b045cbe62249b5eecde2b4f80 Mon Sep 17 00:00:00 2001 From: Piotr Gregor Date: Mon, 22 Feb 2016 11:15:10 +0000 Subject: [PATCH] FS-8854 initialize circular buffer Now all members of buffer are initialized in INIT_CIRC_BUFFER macro. --- src/mod/applications/mod_avmd/buffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/applications/mod_avmd/buffer.h b/src/mod/applications/mod_avmd/buffer.h index c58b35ecaf..a92904ddbc 100644 --- a/src/mod/applications/mod_avmd/buffer.h +++ b/src/mod/applications/mod_avmd/buffer.h @@ -87,6 +87,7 @@ extern size_t next_power_of_2(size_t v); (bf)->pos = 0; \ (bf)->lpos = 0; \ (bf)->backlog = 0; \ + (bf)->i = 0; \ } //#define DESTROY_CIRC_BUFFER(b) free((b)->buf)