changeset 8597:dc1b9e22f288

osutil: silence uninitialized variable warning
author Patrick Mezard <pmezard@gmail.com>
date Sun, 24 May 2009 16:27:50 +0200
parents a58a95e523aa
children 5edb2a8e29ea
files mercurial/osutil.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;