From 88d7eee00b7c5b5a08f5a78c58026a24932ec483 Mon Sep 17 00:00:00 2001 From: gabor-mezei-arm Date: Wed, 22 Apr 2020 11:07:34 +0200 Subject: [PATCH] Check for empty string in outcome file name Signed-off-by: gabor-mezei-arm --- tests/suites/host_test.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/host_test.function b/tests/suites/host_test.function index 9dde6c275..db65c0f24 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 )