Skip to content

Commit

Permalink
fix member initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
willamowius committed Feb 24, 2022
1 parent b554f42 commit ceb0cbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ptclib/snmpclnt.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ PSNMPClient::PSNMPClient(const PString & host, PINDEX retry,
community(defaultCommunity),
version(SNMP_VERSION),
retryMax(retry),
lastErrorIndex(0),
lastErrorCode(NoError),
maxRxSize(rxSize),
maxTxSize(txSize)
{
Expand Down
2 changes: 2 additions & 0 deletions src/ptlib/common/sockets.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2562,6 +2562,7 @@ PUDPSocket::PUDPSocket(const PString & service, PQoS * qos, int iAddressFamily)

PUDPSocket::PUDPSocket(const PString & address, WORD newPort)
{
lastReceivePort = 0;
sendPort = 0;
SetPort(newPort);
Connect(address);
Expand All @@ -2570,6 +2571,7 @@ PUDPSocket::PUDPSocket(const PString & address, WORD newPort)

PUDPSocket::PUDPSocket(const PString & address, const PString & service)
{
lastReceivePort = 0;
sendPort = 0;
SetPort(service);
Connect(address);
Expand Down

0 comments on commit ceb0cbc

Please sign in to comment.