Fix declaration shadow in ftdi.c
authorxantares <xantares09@hotmail.com>
Sun, 14 Sep 2014 10:31:51 +0000 (12:31 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 26 Sep 2014 15:13:36 +0000 (17:13 +0200)
src/ftdi.c

index 08130c2..ad9e20e 100644 (file)
@@ -3532,9 +3532,9 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, int verbose)
                     {INVERT_RI, "RI"},
                     {0, NULL},
                 };
-                int i, n;
+                int n = 0;
                 printf("Inversion on ");
-                for (i=0, n=0; invbitlist[i].mask;i++) {
+                for (i=0; invbitlist[i].mask;i++) {
                     if(eeprom->rs232_inversion & invbitlist[i].mask) {
                         if (n++) printf (",");
                         printf (" %s", invbitlist[i].name);