X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fcommon%2Fsrc%2Frt_generic_static.c;fp=src%2Frmr%2Fcommon%2Fsrc%2Frt_generic_static.c;h=2e4b7116b58ad613481d3f27debe295cbf4daa0f;hb=9d06960949d8e58776de60f245c35184f1ed7441;hp=9aa58f1b562d2cc46fcfc857cff4c9595b53a9fd;hpb=2bd8785ce17397e6f8e686be421c5a6c860a0b8c;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/common/src/rt_generic_static.c b/src/rmr/common/src/rt_generic_static.c index 9aa58f1..2e4b711 100644 --- a/src/rmr/common/src/rt_generic_static.c +++ b/src/rmr/common/src/rt_generic_static.c @@ -891,7 +891,7 @@ static void cycle_snarfed_rt( uta_ctx_t* ctx ) { if( ctx->snarf_rt_fd < 0 ) { rmr_vlog( RMR_VL_WARN, "rmr_rtc: unable to open trt file: %s: %s\n", tfname, strerror( errno ) ); } else { - if( DEBUG ) rmr_vlog( RMR_VL_DEBUG, "rmr_rtc: rt snarf file opened: %s: %s\n", tfname ); + if( DEBUG ) rmr_vlog( RMR_VL_DEBUG, "rmr_rtc: rt snarf file opened: %s\n", tfname ); } } @@ -1084,7 +1084,7 @@ static void parse_rt_rec( uta_ctx_t* ctx, uta_ctx_t* pctx, char* buf, int vleve if( ctx->new_rtable == NULL ) { // update table not in progress break; } - if( ctx && ctx->snarf_rt_fd >= 0 ) { + if( ctx->snarf_rt_fd >= 0 ) { cycle_snarfed_rt( ctx ); // make it available and open a new one }