Skip to content

Commit 0603b0c

Browse files
committed
CNetIf: fix ctor initializers order
1 parent bb800ba commit 0603b0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/lwIpWrapper/src/CNetIf.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,11 +1024,11 @@ uint8_t CLwipIf::getEncryptionType(NetIfType_t type)
10241024

10251025
/* -------------------------------------------------------------------------- */
10261026
CNetIf::CNetIf()
1027-
: dhcp_timeout(30000)
1027+
: id(0)
1028+
, dhcp_timeout(30000)
1029+
, dhcp_st(DHCP_IDLE_STATUS)
10281030
, dhcp_started(false)
10291031
, dhcp_acquired(false)
1030-
, id(0)
1031-
, dhcp_st(DHCP_IDLE_STATUS)
10321032
, _dhcp_lease_state(DHCP_CHECK_NONE)
10331033
{
10341034
/* -------------------------------------------------------------------------- */

0 commit comments

Comments
 (0)