Make sure PoolImportSearch is properly initialized

This commit is contained in:
Faruk Kasumovic 2018-09-18 14:22:29 +02:00
parent 897b81a1af
commit ca2b45d22f
1 changed files with 2 additions and 1 deletions

View File

@ -490,7 +490,8 @@ nvlist_ptr get_zpool_vdev_tree(nvlist_ptr nv) {
nvlist_ptr go_zpool_search_import(libzfs_handle_ptr zfsh, int paths, char **path, boolean_t do_scan) {
importargs_t idata = { 0 };
importargs_t idata;
memset(&idata, 0, sizeof(importargs_t));
idata.path = path;
idata.paths = paths;
// idata.scan = 0;