diff --git a/tests/suites/host_test.function b/tests/suites/host_test.function index 9dde6c2754..db65c0f249 100644 --- a/tests/suites/host_test.function +++ b/tests/suites/host_test.function @@ -551,7 +551,7 @@ int execute_tests( int argc , const char ** argv ) return( 1 ); } - if( outcome_file_name != NULL ) + if( outcome_file_name != NULL && *outcome_file_name != '\0' ) { outcome_file = fopen( outcome_file_name, "a" ); if( outcome_file == NULL )