Changeset - d429d5902330
[Not reviewed]
default
0 1 0
matthewreed - 7 years ago 2017-07-19 18:25:09

Fixed uninitialized variable.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/can_buffer.c
Show inline comments
 
@@ -20,7 +20,7 @@ CanBufferStatus can_buffer_add(volatile 
 

	
 
volatile CanRxMsgTypeDef* can_buffer_remove(volatile CanBuffer *buffer)
 
{
 
    volatile CanRxMsgTypeDef* msg;
 
    volatile CanRxMsgTypeDef* msg = NULL;
 
    if (buffer->count > 0) {
 
        msg = &buffer->data[buffer->tail];
 
        buffer->tail = (buffer->tail + 1) % CAN_BUFFER_SIZE;
0 comments (0 inline, 0 general)