X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fcommon%2Fsrc%2Fsymtab.c;h=4820ebd835c6f1216d148374a904a98aae81e5c0;hb=190665fe57168a4b9d544b88d3f69797f258c04c;hp=e96af03ade4f30bb1408be31852a7f9a2fe77828;hpb=68c1ab2191d9959fde0bd275a560f7c9cf6df485;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/common/src/symtab.c b/src/rmr/common/src/symtab.c index e96af03..4820ebd 100644 --- a/src/rmr/common/src/symtab.c +++ b/src/rmr/common/src/symtab.c @@ -321,7 +321,10 @@ extern void *rmr_sym_get( void *vtable, const char *name, unsigned int class ) int hv; // hash value of key uint64_t nkey; // numeric key if class 0 - table = (Sym_tab *) vtable; + if( (table = (Sym_tab *) vtable) == NULL ) { + return NULL; + } + sym_tab = table->symlist; if( class ) {