diff --git a/hal/filesystem/linux/file_provider_linux.c b/hal/filesystem/linux/file_provider_linux.c index e9f03e87..dc869d96 100644 --- a/hal/filesystem/linux/file_provider_linux.c +++ b/hal/filesystem/linux/file_provider_linux.c @@ -114,7 +114,7 @@ FileSystem_openDirectory(char* directoryName) DirectoryHandle handle = NULL; if (dirHandle != NULL) { - handle = GLOBAL_MALLOC(sizeof(struct sDirectoryHandle)); + handle = (DirectoryHandle) GLOBAL_MALLOC(sizeof(struct sDirectoryHandle)); handle->handle = dirHandle; }