From ca2b45d22f2e1cef8583dff08e7154c5a7521ac5 Mon Sep 17 00:00:00 2001 From: Faruk Kasumovic Date: Tue, 18 Sep 2018 14:22:29 +0200 Subject: [PATCH] Make sure PoolImportSearch is properly initialized --- zpool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zpool.c b/zpool.c index d592be4..a47fbf6 100644 --- a/zpool.c +++ b/zpool.c @@ -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;