Skip to content

Commit d89d650

Browse files
authored
Merge pull request #255 from ivop/master
osi: img2osi, initialize local parity variable with 0
2 parents 04bbf95 + e8057d8 commit d89d650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/img2osi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void put_bit(bool bit) {
6262
}
6363

6464
static void put_byte_8E1(uint8_t byte) {
65-
bool parity;
65+
bool parity = 0;
6666
put_bit(0); // start bit
6767
for (int i=0; i<8; i++) {
6868
bool bit = byte & (1<<i);

0 commit comments

Comments
 (0)