Skip to content

Commit 50b2d8f

Browse files
Update mpu_wrappers_v2.c (#709)
* Update mpu_wrappers_v2.c * Initialize Internal QueueSet Handle to NULL --------- Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
1 parent b375458 commit 50b2d8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

portable/Common/mpu_wrappers_v2.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,7 +2133,7 @@
21332133
{
21342134
BaseType_t xReturn = pdFAIL;
21352135
QueueSetMemberHandle_t xInternalQueueSetMemberHandle = NULL;
2136-
QueueSetHandle_t xInternalQueueSetHandle;
2136+
QueueSetHandle_t xInternalQueueSetHandle = NULL;
21372137
int32_t lIndexQueueSet, lIndexQueueSetMember;
21382138

21392139
lIndexQueueSet = ( int32_t ) xQueueSet;
@@ -2215,7 +2215,7 @@
22152215

22162216
const char * MPU_pcQueueGetNameImpl( QueueHandle_t xQueue ) /* PRIVILEGED_FUNCTION */
22172217
{
2218-
const char * pcReturn;
2218+
const char * pcReturn = NULL;
22192219
QueueHandle_t xInternalQueueHandle = NULL;
22202220
int32_t lIndex;
22212221

@@ -2519,7 +2519,7 @@
25192519
{
25202520
BaseType_t xReturn = pdFAIL;
25212521
QueueSetMemberHandle_t xInternalQueueSetMemberHandle = NULL;
2522-
QueueSetHandle_t xInternalQueueSetHandle;
2522+
QueueSetHandle_t xInternalQueueSetHandle = NULL;
25232523
int32_t lIndexQueueSet, lIndexQueueSetMember;
25242524

25252525
lIndexQueueSet = ( int32_t ) xQueueSet;
@@ -3330,7 +3330,7 @@
33303330
const EventBits_t uxBitsToWaitFor,
33313331
TickType_t xTicksToWait ) /* PRIVILEGED_FUNCTION */
33323332
{
3333-
EventBits_t xReturn;
3333+
EventBits_t xReturn = 0;
33343334
EventGroupHandle_t xInternalEventGroupHandle = NULL;
33353335
int32_t lIndex;
33363336

0 commit comments

Comments
 (0)