X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Ftest_support.c;h=d14678b7bd724a934ff5586d6820231253182d96;hb=40e32867174c51c9b0ea50dfea19130c468cc200;hp=9f8f00f9b0220ab9c353d69742a00a2fd676408b;hpb=503fe41e88b66ff8986c991bfbd075331b0bd166;p=ric-plt%2Flib%2Frmr.git diff --git a/test/test_support.c b/test/test_support.c index 9f8f00f..d14678b 100644 --- a/test/test_support.c +++ b/test/test_support.c @@ -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 );