From e5522b690df9e7ee2ed076b693875450a03d6bcb Mon Sep 17 00:00:00 2001 From: Pierre Weis Date: Fri, 25 Sep 2009 15:03:06 +0000 Subject: Variable err is initialized to 0. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9359 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/win32unix/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'otherlibs/win32unix/write.c') diff --git a/otherlibs/win32unix/write.c b/otherlibs/win32unix/write.c index ac7daa7b0..190d90253 100644 --- a/otherlibs/win32unix/write.c +++ b/otherlibs/win32unix/write.c @@ -66,7 +66,7 @@ CAMLprim value unix_single_write(value fd, value buf, value vofs, value vlen) intnat ofs, len, written; DWORD numbytes, numwritten; char iobuf[UNIX_BUFFER_SIZE]; - DWORD err; + DWORD err = 0; Begin_root (buf); ofs = Long_val(vofs); -- cgit v1.2.3-70-g09d2