Initialise buffer before use

Commit initialises buf before it is used.

Signed-off-by: Thomas Daubney <[email protected]>
This commit is contained in:
Thomas Daubney
2022-02-17 21:30:25 +00:00
parent 3a066ec999
commit 0bd08e7ac0
+1
View File
@@ -16,6 +16,7 @@ void mbedtls_md_process( )
unsigned char buf[150];
mbedtls_md_init( &ctx );
memset( buf, 0, sizeof( buf ) );
/*
* Very minimal testing of mbedtls_md_process, just make sure the various