mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix ISO C90 error
This commit is contained in:
parent
76591f8ce0
commit
962fd6fc9a
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue