Make NULL tag check more explicit

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2021-09-22 17:15:48 +01:00
parent 70618b22a9
commit 90fdc117dd

View file

@ -3760,7 +3760,7 @@ exit:
* Even if the operation succeeds, make sure we clear the rest of the
* buffer to prevent potential leakage of anything previously placed in
* the same buffer.*/
if( tag )
if( tag != NULL )
{
if( status != PSA_SUCCESS )
memset( tag, '!', tag_size );