mirror_zfs/cmd/zfs
Richard Yao 4ecd96371b Fix theoretical use of uninitialized values
Clang's static analyzer complains about this.

In get_configs(), if we have an invalid configuration that has no top
level vdevs, we can read a couple of uninitialized variables. Aborting
upon seeing this would break the userland tools for healthy pools, so we
instead initialize the two variables to 0 to allow the userland tools to
continue functioning for the pools with valid configurations.

In zfs_do_wait(), if no wait activities are enabled, we read an
uninitialized error variable.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14043
2022-10-19 17:10:21 -07:00
..
Makefile.am autoconf: use include directives instead of recursing down cmd 2022-05-10 10:18:38 -07:00
zfs_iter.c Add createtxg sort support for simple snapshot iterator 2022-07-25 14:04:46 -07:00
zfs_iter.h Add createtxg sort support for simple snapshot iterator 2022-07-25 14:04:46 -07:00
zfs_main.c Fix theoretical use of uninitialized values 2022-10-19 17:10:21 -07:00
zfs_project.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_projectutil.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_util.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00