Skip to content

Commit 2c656a5

Browse files
author
zigam
committed
- added comment
1 parent 2ccb838 commit 2c656a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ring_buffer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ ring_buffer_status_t ring_buffer_init(p_ring_buffer_t * p_ring_buffer, const uin
435435

436436
if ( NULL != p_ring_buffer )
437437
{
438+
// Check if that instance is already allocated
439+
// By meaning that this buffer instance was initialised before...
438440
if ( NULL == *p_ring_buffer )
439441
{
440442
// Allocate ring buffer instance space

0 commit comments

Comments
 (0)