osutil: silence uninitialized variable warning
authorPatrick Mezard <pmezard@gmail.com>
Sun, 24 May 2009 16:27:50 +0200
changeset 8597 dc1b9e22f288
parent 8596 a58a95e523aa
child 8598 5edb2a8e29ea
osutil: silence uninitialized variable warning
mercurial/osutil.c
--- 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;