JobServer: initialize sockaddr_in
This most probably is not a real problem, but does not take much work to fix. Found by Coverity Scan, in several reports. Change-Id: I8bd12e3f7afeb4b1c4e1b057bdbd95da9aa9211c
This commit is contained in:
@ -137,7 +137,7 @@ void JobServer::run()
|
||||
}
|
||||
|
||||
/* IPv4, bind to all interfaces */
|
||||
struct sockaddr_in saddr;
|
||||
struct sockaddr_in saddr = {0};
|
||||
saddr.sin_family = AF_INET;
|
||||
saddr.sin_port = htons(m_port);
|
||||
saddr.sin_addr.s_addr = htons(INADDR_ANY);
|
||||
|
||||
Reference in New Issue
Block a user