git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d31e3d5
)
fix unit var warning if ftdi_read_eeprom_location returned error, data would not...
author
Shawn Hoffman
<godisgovernment@gmail.com>
Wed, 10 Apr 2024 14:15:47 +0000 (07:15 -0700)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Thu, 12 Jun 2025 20:05:21 +0000 (22:05 +0200)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
b773303
..
de07d6e
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-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;