commit cf96235e8be28d0cfba45a829e05c9927268f04c
parent 8322dfd5adc84bf1624fe3556e89dd40bdf0e3a4
Author: Nils Durner <durner@gnunet.org>
Date: Fri, 1 Apr 2005 19:11:04 +0000
Fix potential segfault
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/winproc.c b/src/main/winproc.c
@@ -926,7 +926,7 @@ int flock(int fd, int operation)
BOOL bRet;
hFile = (HANDLE) _get_osfhandle(fd);
- memset(&theOvInfo, sizeof(OVERLAPPED), 0);
+ memset(&theOvInfo, 0, sizeof(OVERLAPPED));
/* Don't deadlock ourselves */
if (theWinVersion.dwPlatformId == VER_PLATFORM_WIN32_NT)