]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8854 initialize circular buffer
authorPiotr Gregor <piotrek.gregor@gmail.com>
Mon, 22 Feb 2016 11:15:10 +0000 (11:15 +0000)
committerPiotr Gregor <piotrek.gregor@gmail.com>
Mon, 22 Feb 2016 11:15:10 +0000 (11:15 +0000)
Now all members of buffer are initialized
in INIT_CIRC_BUFFER macro.

src/mod/applications/mod_avmd/buffer.h

index c58b35ecaf7ddab8fea87eebd1ee4d31864bc2d2..a92904ddbcfad67bb86e1b597444bf41c29d9f91 100644 (file)
@@ -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)