1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Allow NULL path in HRN_STORAGE_MODE() macro.

This commit is contained in:
David Steele 2021-07-08 09:25:42 -04:00
parent 62e8d97af0
commit 34e51ee7b6

View File

@ -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)