Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRTOS/FreeRTOS-Kernel.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>2023-12-07 12:26:44 +0300
committerGitHub <noreply@github.com>2023-12-07 12:26:44 +0300
commit93ef558fa8484211bd1d78c06bbd14aae1b2ece5 (patch)
tree27e6295123f432044a6f19df12a153f66fbc9c15 /timers.c
parent51437bf9433a0043f29921348097069fdd4ae4b9 (diff)
Declare variable without initializer (#841)
Co-authored-by: Soren Ptak <ptaksoren@gmail.com> Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/timers.c b/timers.c
index 2d24bf042..72636cf46 100644
--- a/timers.c
+++ b/timers.c
@@ -943,12 +943,12 @@
static void prvProcessReceivedCommands( void )
{
- DaemonTaskMessage_t xMessage;
+ DaemonTaskMessage_t xMessage = { 0 };
Timer_t * pxTimer;
BaseType_t xTimerListsWereSwitched;
TickType_t xTimeNow;
- while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
+ while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL )
{
#if ( INCLUDE_xTimerPendFunctionCall == 1 )
{