remove scary use of memset

pull/143/merge
bert hubert 2022-03-07 14:03:36 +01:00
parent 0427adb27b
commit 21443e89cf
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ using namespace std;
void RTCMMessage::parse(const std::string& str)
{
memset(&d_gm, 0, sizeof(d_gm));
d_gm={};
// memset(&d_gm, 0, sizeof(d_gm));
auto gbu=[&str](int offset, int bits) {
return getbitu((const unsigned char*)str.c_str(), offset, bits);
};