Skip to content

Commit

Permalink
Zero sockaddr struct when initializing. Thanks yuvalt
Browse files Browse the repository at this point in the history
  • Loading branch information
topfs2 committed Jan 20, 2011
1 parent 0cf0219 commit 4b33441
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xbmc/lib/libjsonrpc/TCPServer.cpp
Expand Up @@ -174,6 +174,7 @@ bool CTCPServer::Initialize()
Deinitialize();

struct sockaddr_in myaddr;
memset(&myaddr, 0, sizeof(myaddr));

myaddr.sin_family = AF_INET;
myaddr.sin_port = htons(m_port);
Expand Down

0 comments on commit 4b33441

Please sign in to comment.