Skip to content

Commit b98a2d2

Browse files
committed
Code review suggestion
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
1 parent d4ad351 commit b98a2d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

queue.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,9 @@ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength,
849849
if( xReturn != pdFAIL )
850850
{
851851
( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
852+
853+
/* Check if an overflow occurred. */
854+
configASSERT( pxMutex->u.xSemaphore.uxRecursiveCallCount );
852855
}
853856
else
854857
{

0 commit comments

Comments
 (0)