Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add ability to control route table req frequency
[ric-plt/lib/rmr.git]
/
test
/
test_support.c
diff --git
a/test/test_support.c
b/test/test_support.c
index
8429e50
..
d14678b
100644
(file)
--- 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
/*
==================================================================================
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 );
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 );
new_msg->tp_buf = (void *) malloc( alen );
memset( new_msg->tp_buf, 0, alen );