test_map: initialize memory block
This is not a strictly necessary initialization, as the data is not used, but will keep Coverity happy. It being a testcase, there are no size or speed penalties to the overall kernel and avoids having to manage a whitelist for an issue in scanning tools. Change-Id: I0ddcf43ca1114356d58f93de57232864246ffe07 Coverity-ID: 152052 Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
This commit is contained in:
parent
dd87d9b595
commit
2612e7518e
1 changed files with 3 additions and 0 deletions
|
@ -311,6 +311,9 @@ void RegressionTask(void)
|
|||
void *b; /* Pointer to memory block */
|
||||
void *ptr[NUMBLOCKS]; /* Pointer to memory block */
|
||||
|
||||
/* not strictly necessary, but keeps coverity checks happy */
|
||||
memset(ptr, 0, sizeof(ptr));
|
||||
|
||||
/* Part 1 of test */
|
||||
|
||||
TC_START("Test Microkernel Memory Maps");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue