X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Frt_static_test.c;h=1647993a7d2697f12a5e6bc3e307a49da9802c38;hb=refs%2Fchanges%2F05%2F4705%2F1;hp=dbe8d7807739b031eedb9795cc7162a486071666;hpb=fc2112d22bf69b4bfbe0c419ed366f0d0ec370ca;p=ric-plt%2Flib%2Frmr.git diff --git a/test/rt_static_test.c b/test/rt_static_test.c index dbe8d78..1647993 100644 --- a/test/rt_static_test.c +++ b/test/rt_static_test.c @@ -427,9 +427,11 @@ static int rt_test( ) { ep = (endpoint_t *) malloc( sizeof( *ep ) ); + memset( ep, 0, sizeof( ep ) ); pthread_mutex_init( &ep->gate, NULL ); ep->name = strdup( "worm" ); ep->addr = NULL; + ep->notify = 1; #ifdef NNG_UNDER_TEST state = uta_link2( ep ); #else @@ -458,6 +460,7 @@ static int rt_test( ) { #ifndef NNG_UNDER_TEST ep->open = 0; // context is used only if ep not open, so to check this test close the ep + ep->notify = 1; state = rt_link2_ep( NULL, ep ); errors += fail_if_true( state, "rt_link2_ep returned true when given bad context" );