Fox verbose test framework not to duplicate strings if not verbose

This commit is contained in:
Paul Bakker 2016-05-12 15:55:37 +01:00
parent 6e51915187
commit 2a259c63e3

View file

@ -357,6 +357,13 @@ int main(int argc, const char *argv[])
{
if( dep_check( params[i] ) != DEPENDENCY_SUPPORTED )
{
if( 0 == option_verbose )
{
/* Only one count is needed if not verbose */
unmet_dep_count++;
break;
}
unmet_dependencies[ unmet_dep_count ] = strdup(params[i]);
if( unmet_dependencies[ unmet_dep_count ] == NULL )
{