diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index a57824155f78..6a24795c439a 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -5422,7 +5422,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