Skip to content

Commit

Permalink
Explicitly set pointer to NULL
Browse files Browse the repository at this point in the history
Fixing test cases by explicitly setting
pContext pointer to NULL for later check.
  • Loading branch information
kstribrnAmzn committed Sep 14, 2023
1 parent 8856e87 commit f05f2dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit-test/ota_utest.c
Original file line number Diff line number Diff line change
Expand Up @@ -3587,7 +3587,7 @@ void test_OTA_parseJobFailsNullJsonDocument()

void test_OTA_parseJobFailsMoreBlocksThanBitmap()
{
OtaFileContext_t * pContext;
OtaFileContext_t * pContext = NULL;
bool updateJob = false;
DocParseErr_t err;
JsonDocParam_t otaCustomJobDocModelParamStructure[ 1 ] =
Expand All @@ -3607,7 +3607,7 @@ void test_OTA_parseJobFailsMoreBlocksThanBitmap()

void test_OTA_extractParameterFailInvalidJobDocModel()
{
OtaFileContext_t * pContext;
OtaFileContext_t * pContext = NULL;
bool updateJob = false;
DocParseErr_t err;
JsonDocParam_t otaCustomJobDocModelParamStructure[ 1 ] =
Expand Down

0 comments on commit f05f2dc

Please sign in to comment.