Skip to content

Commit d790c05

Browse files
Remove usage of non-portable bzero function, replace with memset.
1 parent 02a0745 commit d790c05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpputest-for-qpc-lib/src/cpputest_qf_port.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern "C" void QF_init(void)
4444
nullptr, Q_USER_SIG, tickRate);
4545
}
4646

47-
bzero(&QActive_registry_[0], static_cast<uint_fast16_t>(sizeof(QActive_registry_)));
47+
std::memset(&QActive_registry_[0], 0, sizeof(QActive_registry_));
4848
}
4949

5050
extern "C" void QF_stop(void)

0 commit comments

Comments
 (0)