Skip to content

Commit ed7e934

Browse files
committed
lattice: add a memset to avoid valgrind warn
1 parent 88522b0 commit ed7e934

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lattice.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ uint32_t Lattice::readStatusReg()
625625
{
626626
uint32_t reg;
627627
uint8_t rx[4], tx[4];
628+
/* valgrind warn */
629+
memset(tx, 0, 4);
628630
wr_rd(0x3C, tx, 4, rx, 4);
629631
_jtag->set_state(Jtag::RUN_TEST_IDLE);
630632
_jtag->toggleClk(1000);

0 commit comments

Comments
 (0)