fix unit var warning if ftdi_read_eeprom_location returned error, data would not...
authorShawn Hoffman <godisgovernment@gmail.com>
Wed, 10 Apr 2024 14:15:47 +0000 (07:15 -0700)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 12 Jun 2025 20:05:21 +0000 (22:05 +0200)
src/ftdi.c

index b773303..de07d6e 100644 (file)
@@ -3521,7 +3521,7 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi)
             i = 0x40;
         }
         if ((ftdi->type == TYPE_230X) && (i >=  0x40) && (i < 0x50)) {
-            uint16_t data;
+            uint16_t data = 0;
             if (ftdi_read_eeprom_location(ftdi, i, &data)) {
                 fprintf(stderr, "Reading Factory Configuration Data failed\n");
                 i = 0x50;