X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Ftest_support.c;h=d14678b7bd724a934ff5586d6820231253182d96;hb=9c923bcc9322c22220b574671c7b46f10008c614;hp=8429e5050015f8ac1cb1cbfc8c10bdc311d28e52;hpb=fc5c77b3d78988aa407118235d7f5978642df753;p=ric-plt%2Flib%2Frmr.git diff --git a/test/test_support.c b/test/test_support.c index 8429e50..d14678b 100644 --- a/test/test_support.c +++ b/test/test_support.c @@ -1,4 +1,4 @@ -// : vi ts=4 sw=4 noet : +// vi: ts=4 sw=4 noet : /* ================================================================================== Copyright (c) 2019-2020 Nokia @@ -197,6 +197,7 @@ static rmr_mbuf_t* test_mk_msg( int len, int tr_len ) { alen = sizeof( *hdr ) + tr_len + len + TP_HDR_LEN; // this does no support allocating len2 and len3 data fields new_msg = (rmr_mbuf_t *) malloc( sizeof *new_msg ); + memset( new_msg, 0, sizeof( *new_msg ) ); new_msg->tp_buf = (void *) malloc( alen ); memset( new_msg->tp_buf, 0, alen );