diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index 2b6605ad32..5adddf14c5 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -4056,7 +4056,7 @@ int main(int argc, char **argv) { int ret; - int i; + int i = 0; #ifdef HAVE_ZPL char *progname; #endif diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index b423558842..1b9fc46838 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -3925,7 +3925,7 @@ int main(int argc, char **argv) { int ret; - int i; + int i = 0; char *cmdname; (void) setlocale(LC_ALL, "");