Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libnvme/src/nvme/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ int nvme_host_get_ids(struct nvme_global_ctx *ctx,
h = nvme_first_host(ctx);
if (h) {
if (!hid)
hid = strdup(nvme_host_get_hostid(h));
hid = xstrdup(nvme_host_get_hostid(h));
if (!hnqn)
hnqn = strdup(nvme_host_get_hostnqn(h));
hnqn = xstrdup(nvme_host_get_hostnqn(h));
}

/* /etc/nvme/hostid and/or /etc/nvme/hostnqn */
Expand Down