I work through some defects of static analysis, and this causes me a problem.
SOCKADDR_IN m_stLclAddr;
SOCKADDR_IN is a member of the WinSock API
Defect says that I did not initialize the following:
- m_stLclAddr.sin_port
- m_stLclAddr.sin_zero
- m_stLclAddr.sin_addr
- m_stLclAddr.sin_family
I am not very familiar with the WinSock API, but I did a little research, and I just want to know if the next line of code will initialize m_stLclAddr with default values โโ?:
m_stLclAddr = { 0 };
DukeOfMarmalade
source share