diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index c271be86c6..91b85ed6b8 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -4026,7 +4026,7 @@ int main(int argc, char **argv) { int ret; - int i; + int i = 0; char *progname; char *cmdname; diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index 99fb100804..3cdc269b08 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -3915,7 +3915,7 @@ int main(int argc, char **argv) { int ret; - int i; + int i = 0; char *cmdname; (void) setlocale(LC_ALL, "");