opt: initial new memory bytes
This commit is contained in:
parent
797f8f164e
commit
49d6ad1974
@ -158,6 +158,7 @@ void serialize(CMessageInfo& msg_info, char** out_buf, int& len, bool reuse_mem)
|
||||
*out_buf = new char[len];
|
||||
}
|
||||
|
||||
std::memset(*out_buf, 0x0, kz + 1);
|
||||
char* ptr = *out_buf + kz + 1;
|
||||
|
||||
// 序列化 cmd
|
||||
|
Loading…
x
Reference in New Issue
Block a user