[PATCH] initialize needs_close to FALSE
Marcus Meissner
marcus at jet.franken.de
Thu Feb 8 13:20:34 CST 2007
Hi,
Coverity spotted there might be some
paths through the functions where needs_close
might be uninitialized.
Ciao, Marcus
---
dlls/ntdll/file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 125d103..45faccf 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -1227,7 +1227,7 @@ NTSTATUS WINAPI NtQueryInformationFile(
};
struct stat st;
- int fd, needs_close;
+ int fd, needs_close = FALSE;
TRACE("(%p,%p,%p,0x%08x,0x%08x)\n", hFile, io, ptr, len, class);
--
1.4.3.4
More information about the wine-patches
mailing list