mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-31 14:18:17 +00:00
FS-8854 initialize circular buffer
Now all members of buffer are initialized in INIT_CIRC_BUFFER macro.
This commit is contained in:
parent
3bd26eaa6b
commit
3af3e54a6f
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user