Skip to content

Commit

Permalink
Allow NULL path in HRN_STORAGE_MODE() macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Jul 8, 2021
1 parent 62e8d97 commit 34e51ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/common/harnessStorage.c
Expand Up @@ -314,7 +314,7 @@ hrnStorageMode(const Storage *const storage, const char *const path, HrnStorageM

ASSERT(storage != NULL);

const char *const pathFull = strZ(storagePathP(storage, STR(path)));
const char *const pathFull = strZ(storagePathP(storage, path == NULL ? NULL : STR(path)));

// If no mode specified then default the mode based on the file type
if (param.mode == 0)
Expand Down

0 comments on commit 34e51ee

Please sign in to comment.