Merge "Avoid null check for reference in fm_snmp_util_gen_trap"

This commit is contained in:
Zuul 2018-08-29 17:44:52 +00:00 committed by Gerrit Code Review
commit 96d28cf543
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ bool fm_snmp_util_gen_trap(int type, SFmAlarmDataT &data) {
res = getTrapDestList();
if (&data != NULL) {
if (get_trap_objtype(type) != WARM_START) {
eid.assign(data.entity_instance_id);
std::string region_name = fm_db_util_get_region_name();
std::string sys_name = fm_db_util_get_system_name();