| 1673 | } |
| 1674 | |
| 1675 | void |
| 1676 | nvlist_move_string(nvlist_t *nvl, const char *name, char *value) |
| 1677 | { |
| 1678 | nvpair_t *nvp; |
| 1679 | |
| 1680 | if (nvlist_error(nvl) != 0) { |
| 1681 | nv_free(value); |
| 1682 | ERRNO_SET(nvlist_error(nvl)); |
| 1683 | return; |
| 1684 | } |
| 1685 | |
| 1686 | nvp = nvpair_move_string(name, value); |
| 1687 | if (nvp == NULL) { |
| 1688 | nvl->nvl_error = ERRNO_OR_DEFAULT(ENOMEM); |
| 1689 | ERRNO_SET(nvl->nvl_error); |
| 1690 | } else { |
| 1691 | (void)nvlist_move_nvpair(nvl, nvp); |
| 1692 | } |
| 1693 | } |
| 1694 | |
| 1695 | void |
| 1696 | nvlist_move_nvlist(nvlist_t *nvl, const char *name, nvlist_t *value) |
nothing calls this directly
no test coverage detected