From 55f25b712d574308b7999a6a8d4bf9fb279bac65 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 4 Nov 2006 17:51:49 +0000 Subject: [PATCH] msvcrt: Cast-qual warnings fix. --- dlls/msvcrt/file.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index 1624f840f6c..c842ef8b93c 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -1980,7 +1980,8 @@ int CDECL _write(int fd, const void* buf, unsigned int count) else { unsigned int i, j, nr_lf; - char *p; + char *p = NULL; + const char *q; const char *s = (const char *)buf, *buf_start = (const char *)buf; /* find number of \n ( without preceding \r ) */ for ( nr_lf=0,i = 0; i