Skip to content

Commit

Permalink
Update MPIO
Browse files Browse the repository at this point in the history
  • Loading branch information
cfnptr committed Jan 30, 2024
1 parent 7ae027f commit 1a00af8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ option(PACK_BUILD_UTILITIES "Build Pack utility programs" ON)
option(PACK_BUILD_TESTS "Build Pack library tests" ON)

set(MPIO_BUILD_SHARED OFF CACHE BOOL "" FORCE)
set(MPIO_BUILD_TESTS OFF CACHE BOOL "" FORCE)
add_subdirectory(libraries/mpio)

set(ZSTD_MULTITHREAD_SUPPORT OFF CACHE BOOL "" FORCE)
Expand Down
3 changes: 2 additions & 1 deletion source/reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ PackResult createFilePackReader(const char* filePath,
#if __APPLE__
if (isResourcesDirectory)
{
const char* resourcesDirectory = getResourcesDirectory();
char* resourcesDirectory = getResourcesDirectory();
if (!resourcesDirectory)
{
destroyPackReader(packReaderInstance);
Expand All @@ -141,6 +141,7 @@ PackResult createFilePackReader(const char* filePath,
path[resourcesPathLength] = '/';
memcpy(path + resourcesPathLength + 1, filePath, filePathLength);
path[resourcesPathLength + filePathLength + 1] = '\0';
free(resourcesDirectory);
}
else
{
Expand Down

0 comments on commit 1a00af8

Please sign in to comment.