]> granicus.if.org Git - zfs/commitdiff
Add two more possible uninit vars flagged by gcc.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 23 Oct 2009 18:43:09 +0000 (11:43 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 23 Oct 2009 18:43:09 +0000 (11:43 -0700)
cmd/zfs/zfs_main.c
cmd/zpool/zpool_main.c

index 25cf7d638e552f4ff149ea3f6c9d926a146d760b..57b95f39a16655d739ec01aaf8b96a7b6ef3371b 100644 (file)
@@ -4027,7 +4027,7 @@ int
 main(int argc, char **argv)
 {
        int ret;
-       int i;
+       int i = 0;
        char *progname;
        char *cmdname;
 
index b637822d44c0d229b9bb142a9f8ec9bc5a1c43a3..8d8285d5c160fdcfa9b796134ce05bd20fd60048 100644 (file)
@@ -3942,7 +3942,7 @@ int
 main(int argc, char **argv)
 {
        int ret;
-       int i;
+       int i = 0;
        char *cmdname;
 
        (void) setlocale(LC_ALL, "");