pgbackrest.git / summary / log / commit / refs
commit caef2ba482a887113d08fd926a582ff68786a39f
Author: David Steele <david@pgmasters.net>
Date: Fri Jul 31 20:35:58 2020 +0000
Accept NULL filenames in hrnStorageInfoListCallback().
This allows it to be used with StorageInfo objects returned from storageInfo(), which do not contain a filename.
test/src/common/harnessStorage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/src/common/harnessStorage.c b/test/src/common/harnessStorage.c
index 958278e9c..c2a0edfff 100644
--- a/test/src/common/harnessStorage.c
+++ b/test/src/common/harnessStorage.c
@@ -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)
{
[parent: a8e47c38c6d7]