]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/zdb/zdb.c
zdb: Fix big parameter passed by value
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Sun, 4 Dec 2022 22:58:46 +0000 (17:58 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 8 Dec 2022 21:52:53 +0000 (13:52 -0800)
commitecccaede680cc2390181342e3036478fbb9915fd
tree6cf1a9b33c3d6c57d0e32a1a19f6091ad30cdd38
parentf1100863f74f1c72840b4ed264f7721f1c7fae0e
zdb: Fix big parameter passed by value

This is not in performance critical code, but static analyzers will
complain about it, so lets switch to pass by pointer here.

Reported-by: Coverity (CID-1524384)
Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14263
cmd/zdb/zdb.c