diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 97211e01e7..48e8569b24 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -5452,7 +5452,8 @@ main(int argc, char **argv) process_options(argc, argv); /* Override location of zpool.cache */ - (void) asprintf((char **)&spa_config_path, "%s/zpool.cache", zopt_dir); + VERIFY(asprintf((char **)&spa_config_path, "%s/zpool.cache", + zopt_dir) != -1); /* * Blow away any existing copy of zpool.cache