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:
parent
62e8d97af0
commit
34e51ee7b6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user