Skip to content

Commit 0cc9a68

Browse files
committed
Replace readable initializer with ancient C89-compatible equivalent
1 parent 4d346cb commit 0cc9a68

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tasks.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4551,7 +4551,9 @@ char * pcTaskGetName( TaskHandle_t xTaskToQuery )
45514551
/* Is there a space in the array for each task in the system? */
45524552
if( uxArraySize >= uxCurrentNumberOfTasks )
45534553
{
4554-
TaskStatusArrayWriterContext_t xContext = { pxTaskStatusArray, 0 };
4554+
TaskStatusArrayWriterContext_t xContext; /* Nope, not in ancient C89: = { pxTaskStatusArray, 0 }; */
4555+
xContext.pxTaskStatusArray = pxTaskStatusArray;
4556+
xContext.uxIndex = 0;
45554557
uxTask = prvCallForEachTask( prvTaskStatusArrayWriter, &xContext );
45564558
prvGetTotalRunTime( pulTotalRunTime );
45574559
}

0 commit comments

Comments
 (0)