Skip to content

Commit

Permalink
Initialize system port type variable (sonic-net#1681)
Browse files Browse the repository at this point in the history
Initialize System port type variable to SAI_SYSTEM_PORT_TYPE_LOCAL
  • Loading branch information
prsunny authored Mar 26, 2021
1 parent 242189b commit 5adb73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5adb73e

Please sign in to comment.