Skip to content

Commit

Permalink
Accept NULL filenames in hrnStorageInfoListCallback().
Browse files Browse the repository at this point in the history
This allows it to be used with StorageInfo objects returned from storageInfo(), which do not contain a filename.
  • Loading branch information
dwsteele committed Jul 31, 2020
1 parent a8e47c3 commit caef2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/common/harnessStorage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit caef2ba

Please sign in to comment.