From 962fd6fc9a2bed0673784392c974b0b7855d8b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Mon, 21 Sep 2015 14:17:00 +0200 Subject: [PATCH] Fix ISO C90 error --- tester/common/bc_tester_utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tester/common/bc_tester_utils.c b/tester/common/bc_tester_utils.c index dd9b99b79..7ad75eea0 100644 --- a/tester/common/bc_tester_utils.c +++ b/tester/common/bc_tester_utils.c @@ -328,9 +328,11 @@ void bc_tester_helper(const char *name, const char* additionnal_helper) { static int file_exists(const char* root_path) { FILE* file; char * sounds_path = malloc(sizeof(char)*strlen(root_path)+strlen("sounds")); + int found; + sprintf(sounds_path, "%ssounds", root_path); file = fopen(sounds_path, "r"); - int found = (file != NULL); + found = (file != NULL); if (file) fclose(file); return found; }