Skip to content

Commit e8057d8

Browse files
committed
osi: img2osi, initialize local parity variable with 0
1 parent 04bbf95 commit e8057d8

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)