Commit 731d10d9 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 60469 (Using uninitialized value log. Field...

Fix Coverity Scan CID 60469 (Using uninitialized value log. Field log.logMgrHandle is uninitialized when calling nwGtpv1uSetLogMgrEntity.)
parent c4d56a93
...@@ -899,7 +899,7 @@ int gtpv1u_eNB_init(void) { ...@@ -899,7 +899,7 @@ int gtpv1u_eNB_init(void) {
} }
log.logReqCallback = gtpv1u_eNB_log_request; log.logReqCallback = gtpv1u_eNB_log_request;
memset((void *)&(log.logMgrHandle), 0, sizeof(NwGtpv1uLogMgrHandleT));
if ((rc = nwGtpv1uSetLogMgrEntity(RC.gtpv1u_data_g->gtpv1u_stack, &log)) != NW_GTPV1U_OK) { if ((rc = nwGtpv1uSetLogMgrEntity(RC.gtpv1u_data_g->gtpv1u_stack, &log)) != NW_GTPV1U_OK) {
LOG_E(GTPU, "nwGtpv1uSetLogMgrEntity: %x", rc); LOG_E(GTPU, "nwGtpv1uSetLogMgrEntity: %x", rc);
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment