Changeset 24592 in vbox for trunk/src/VBox
- Timestamp:
- Nov 11, 2009 3:24:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/linux/NetIf-linux.cpp
r23203 r24592 77 77 static int getInterfaceInfo(int iSocket, const char *pszName, PNETIFINFO pInfo) 78 78 { 79 // Zeroing out pInfo is a bad idea as it should contain both short and long names at this point. 80 //memset(pInfo, 0, sizeof(*pInfo)); 79 // Zeroing out pInfo is a bad idea as it should contain both short and long names at 80 // this point. So make sure the strucure is cleared by the caller if necessary! 81 // memset(pInfo, 0, sizeof(*pInfo)); 81 82 struct ifreq Req; 82 83 memset(&Req, 0, sizeof(Req)); … … 180 181 char *pszName = buf+iFirstNonWS; 181 182 NETIFINFO Info; 183 RT_ZERO(Info); 182 184 rc = getInterfaceInfo(sock, pszName, &Info); 183 185 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.