Fix verbose test framework mote to use unmet_dep_count for index

This commit is contained in:
Paul Bakker 2016-05-12 15:52:48 +01:00 committed by Simon Butcher
parent 38d188896c
commit a30a72f80f

View File

@ -357,8 +357,8 @@ int main(int argc, const char *argv[])
{
if( dep_check( params[i] ) != DEPENDENCY_SUPPORTED )
{
unmet_dependencies[ i-1 ] = strdup(params[i]);
if( unmet_dependencies[ i-1 ] == NULL )
unmet_dependencies[ unmet_dep_count ] = strdup(params[i]);
if( unmet_dependencies[ unmet_dep_count ] == NULL )
{
mbedtls_printf("FATAL: Out of memory\n");
mbedtls_exit( MBEDTLS_EXIT_FAILURE );