remove scary use of memset
parent
0427adb27b
commit
21443e89cf
3
rtcm.cc
3
rtcm.cc
|
@ -6,7 +6,8 @@ using namespace std;
|
||||||
|
|
||||||
void RTCMMessage::parse(const std::string& str)
|
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) {
|
auto gbu=[&str](int offset, int bits) {
|
||||||
return getbitu((const unsigned char*)str.c_str(), offset, bits);
|
return getbitu((const unsigned char*)str.c_str(), offset, bits);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue