diff mercurial/osutil.c @ 8597:dc1b9e22f288

osutil: silence uninitialized variable warning
author Patrick Mezard <pmezard@gmail.com>
date Sun, 24 May 2009 16:27:50 +0200
parents 7de68012f86e
children b4a1b9012d96
line wrap: on
line diff
--- a/mercurial/osutil.c	Sun May 24 16:27:37 2009 +0200
+++ b/mercurial/osutil.c	Sun May 24 16:27:50 2009 +0200
@@ -402,7 +402,7 @@
 	PyObject *file_obj = NULL;
 	char *name = NULL;
 	char *mode = "rb";
-	DWORD access;
+	DWORD access = 0;
 	DWORD creation;
 	HANDLE handle;
 	int fd, flags = 0;