Add struct initialization list

This commit is contained in:
MCUdude 2022-02-20 12:46:53 +01:00
parent 0e29b43bd0
commit a9b756e5c7
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ static int cmd_write(PROGRAMMER * pgm, struct avrpart * p,
int64_t ll; int64_t ll;
uint8_t a[8]; uint8_t a[8];
}; };
} data; } data = {.bytes_grown = 0, .size = 0, .is_float = false, .ll = 0};
for (i = start_offset; i < len + start_offset - data.bytes_grown; i++) { for (i = start_offset; i < len + start_offset - data.bytes_grown; i++) {
data.is_float = false; data.is_float = false;