mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 22:38:38 +00:00
FS-8854 initialize circular buffer
Now all members of buffer are initialized in INIT_CIRC_BUFFER macro.
This commit is contained in:
1 parent
3bd26eaa6b
commit
3af3e54a6f
1 file changed
+1
@@ -87,6 +87,7 @@ extern size_t next_power_of_2(size_t v);
|
|||||||
(bf)->pos = 0; \
|
(bf)->pos = 0; \
|
||||||
(bf)->lpos = 0; \
|
(bf)->lpos = 0; \
|
||||||
(bf)->backlog = 0; \
|
(bf)->backlog = 0; \
|
||||||
|
(bf)->i = 0; \
|
||||||
}
|
}
|
||||||
|
|
||||||
//#define DESTROY_CIRC_BUFFER(b) free((b)->buf)
|
//#define DESTROY_CIRC_BUFFER(b) free((b)->buf)
|
||||||
|
|||||||
Reference in new issue
Block a user