Fixed uninitialized value.
authorArmin Novak <armin.novak@thincast.com>
Thu, 14 Jan 2016 15:00:31 +0000 (16:00 +0100)
committerArmin Novak <armin.novak@thincast.com>
Fri, 15 Jan 2016 08:33:21 +0000 (09:33 +0100)
winpr/libwinpr/file/file.c

index 066a76e..27332e2 100644 (file)
@@ -424,7 +424,7 @@ static HANDLE FileCreateFileA(LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dw
        WINPR_FILE* pFile;
        BOOL create;
        const char* mode = FileGetMode(dwDesiredAccess, dwCreationDisposition, &create);
-       int lock;
+       int lock = 0;
        FILE* fp = NULL;
 
        pFile = (WINPR_FILE*) calloc(1, sizeof(WINPR_FILE));