diff --git a/FIFOBuff/FIFOBuffChar.c b/FIFOBuff/FIFOBuffChar.c index 6f41aef..6801ad6 100644 --- a/FIFOBuff/FIFOBuffChar.c +++ b/FIFOBuff/FIFOBuffChar.c @@ -141,6 +141,7 @@ bool FIFOBuffChar_pop(FIFOBuffChar_t *fifo) default: // buffer is at least 2 element big // find the second last element + { FIFOBuffChar_element_t* secondLastEl = fifo->FirstEl_p; while ( secondLastEl->nextElement != fifo->LastEl_p @@ -158,6 +159,7 @@ bool FIFOBuffChar_pop(FIFOBuffChar_t *fifo) fifo->size--; ok = true; break; + } } return ok;