Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Stunserver
Commits
5accc692
Commit
5accc692
authored
Dec 09, 2018
by
John Selbie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace memset with curly brace initialization
parent
a864e40c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
server/tcpserver.cpp
server/tcpserver.cpp
+2
-2
stuncore/messagehandler.cpp
stuncore/messagehandler.cpp
+2
-2
stuncore/stunclienttests.cpp
stuncore/stunclienttests.cpp
+1
-1
No files found.
server/tcpserver.cpp
View file @
5accc692
...
@@ -53,13 +53,13 @@ void CTCPStunThread::Reset()
...
@@ -53,13 +53,13 @@ void CTCPStunThread::Reset()
_fListenSocketsOnEpoll
=
false
;
_fListenSocketsOnEpoll
=
false
;
memset
(
&
_tsaListen
,
'\0'
,
sizeof
(
_tsaListen
))
;
_tsaListen
=
{}
;
_fNeedToExit
=
false
;
_fNeedToExit
=
false
;
_spAuth
.
reset
();
_spAuth
.
reset
();
_role
=
RolePP
;
_role
=
RolePP
;
memset
(
&
_tsa
,
'\0'
,
sizeof
(
_tsa
))
;
_tsa
=
{}
;
_maxConnections
=
c_MaxNumberOfConnectionsDefault
;
_maxConnections
=
c_MaxNumberOfConnectionsDefault
;
...
...
stuncore/messagehandler.cpp
View file @
5accc692
...
@@ -378,8 +378,8 @@ HRESULT CStunRequestHandler::ValidateAuth()
...
@@ -378,8 +378,8 @@ HRESULT CStunRequestHandler::ValidateAuth()
return
S_OK
;
// nothing to do if there is no auth mechanism in place
return
S_OK
;
// nothing to do if there is no auth mechanism in place
}
}
memset
(
&
authattributes
,
'\0'
,
sizeof
(
authattributes
))
;
authattributes
=
{}
;
memset
(
&
authresponse
,
'\0'
,
sizeof
(
authresponse
))
;
authresponse
=
{}
;
reader
.
GetStringAttributeByType
(
STUN_ATTRIBUTE_USERNAME
,
authattributes
.
szUser
,
ARRAYSIZE
(
authattributes
.
szUser
));
reader
.
GetStringAttributeByType
(
STUN_ATTRIBUTE_USERNAME
,
authattributes
.
szUser
,
ARRAYSIZE
(
authattributes
.
szUser
));
reader
.
GetStringAttributeByType
(
STUN_ATTRIBUTE_REALM
,
authattributes
.
szRealm
,
ARRAYSIZE
(
authattributes
.
szRealm
));
reader
.
GetStringAttributeByType
(
STUN_ATTRIBUTE_REALM
,
authattributes
.
szRealm
,
ARRAYSIZE
(
authattributes
.
szRealm
));
...
...
stuncore/stunclienttests.cpp
View file @
5accc692
...
@@ -45,7 +45,7 @@ HRESULT CStunClientTestBase::Init(StunClientLogicConfig* pConfig, StunClientResu
...
@@ -45,7 +45,7 @@ HRESULT CStunClientTestBase::Init(StunClientLogicConfig* pConfig, StunClientResu
_pConfig
=
pConfig
;
_pConfig
=
pConfig
;
_pResults
=
pResults
;
_pResults
=
pResults
;
_fCompleted
=
false
;
_fCompleted
=
false
;
memset
(
&
_transid
,
0
,
sizeof
(
_transid
))
;
_transid
=
{}
;
Cleanup:
Cleanup:
return
hr
;
return
hr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment