summaryrefslogtreecommitdiffstats
path: root/lib/libzutil/zutil_import.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libzutil/zutil_import.c')
-rw-r--r--lib/libzutil/zutil_import.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libzutil/zutil_import.c b/lib/libzutil/zutil_import.c
index d91953813..f6f125e7a 100644
--- a/lib/libzutil/zutil_import.c
+++ b/lib/libzutil/zutil_import.c
@@ -1791,16 +1791,13 @@ zpool_find_config(void *hdl, const char *target, nvlist_t **configp,
nvlist_t *match = NULL;
nvlist_t *config = NULL;
char *sepp = NULL;
- char sep = '\0';
int count = 0;
char *targetdup = strdup(target);
*configp = NULL;
- if ((sepp = strpbrk(targetdup, "/@")) != NULL) {
- sep = *sepp;
+ if ((sepp = strpbrk(targetdup, "/@")) != NULL)
*sepp = '\0';
- }
pools = zpool_search_import(hdl, args, pco);