mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +02:00
Accept NULL filenames in hrnStorageInfoListCallback().
This allows it to be used with StorageInfo objects returned from storageInfo(), which do not contain a filename.
This commit is contained in:
parent
a8e47c38c6
commit
caef2ba482
@ -71,7 +71,7 @@ hrnStorageInfoListCallback(void *callbackData, const StorageInfo *info)
|
||||
if (data->rootPathOmit && info->type == storageTypePath && strEq(info->name, DOT_STR))
|
||||
return;
|
||||
|
||||
strCatFmt(data->content, "%s {", strZ(info->name));
|
||||
strCatFmt(data->content, "%s {", info->name == NULL ? NULL_Z : strZ(info->name));
|
||||
|
||||
if (info->level > storageInfoLevelExists)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user