From 5adb73eea1b8a93e9eca30eb51b9075043d5fdf0 Mon Sep 17 00:00:00 2001 From: Prince Sunny Date: Thu, 25 Mar 2021 17:51:54 -0700 Subject: [PATCH] Initialize system port type variable (#1681) Initialize System port type variable to SAI_SYSTEM_PORT_TYPE_LOCAL --- orchagent/port.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchagent/port.h b/orchagent/port.h index baf8e3046e..274d2230a3 100644 --- a/orchagent/port.h +++ b/orchagent/port.h @@ -41,7 +41,7 @@ struct VlanInfo struct SystemPortInfo { std::string alias = ""; - sai_system_port_type_t type; + sai_system_port_type_t type = SAI_SYSTEM_PORT_TYPE_LOCAL; sai_object_id_t local_port_oid = 0; uint32_t port_id = 0; uint32_t switch_id = 0;