diff --git a/core/sip/sip_parser_async.cpp b/core/sip/sip_parser_async.cpp index 39384566..a2b76daa 100644 --- a/core/sip/sip_parser_async.cpp +++ b/core/sip/sip_parser_async.cpp @@ -212,7 +212,7 @@ int parse_headers_async(parser_state* pst, char* end) } // reset header struct - memset(hdr,0,sizeof(sip_header)); + hdr = {}; //memset(hdr, 0, sizeof(sip_header)); st = 0; saved_st = 0; pst->beg = c; diff --git a/core/sip/sip_parser_async.h b/core/sip/sip_parser_async.h index fb2c827c..a30effd4 100644 --- a/core/sip/sip_parser_async.h +++ b/core/sip/sip_parser_async.h @@ -29,7 +29,7 @@ struct parser_state } void reset_hdr_parser() { - memset(&hdr,0,sizeof(sip_header)); + hdr = {}; //memset(&hdr, 0, sizeof(sip_header)); st = saved_st = 0; beg = c; }