1 parent f942603 commit a729cd9Copy full SHA for a729cd9
1 file changed
tasks.c
@@ -4551,7 +4551,9 @@ char * pcTaskGetName( TaskHandle_t xTaskToQuery )
4551
/* Is there a space in the array for each task in the system? */
4552
if( uxArraySize >= uxCurrentNumberOfTasks )
4553
{
4554
- TaskStatusArrayWriterContext_t xContext = { pxTaskStatusArray, 0 };
+ TaskStatusArrayWriterContext_t xContext; /* Nope, not in ancient C89: = { pxTaskStatusArray, 0 }; */
4555
+ xContext.pxTaskStatusArray = pxTaskStatusArray;
4556
+ xContext.uxIndex = 0;
4557
uxTask = prvCallForEachTask( prvTaskStatusArrayWriter, &xContext );
4558
prvGetTotalRunTime( pulTotalRunTime );
4559
}
0 commit comments