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