[PATCH] CID385: initialize owner_exists
Marcus Meissner
meissner at suse.de
Thu Feb 1 10:02:38 CST 2007
Hi,
Coverity spotted that owner_exists might be used uninitialized in some
rare cases (where the if() is not passed). Fixed.
Ciao, Marcus
---
dlls/kernel32/ne_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/ne_module.c b/dlls/kernel32/ne_module.c
index 80b8295..25b0dcf 100644
--- a/dlls/kernel32/ne_module.c
+++ b/dlls/kernel32/ne_module.c
@@ -1050,7 +1050,7 @@ static HINSTANCE16 MODULE_LoadModule16(
const char *file_name = NULL;
char dllname[20], owner[20], *p;
const char *basename;
- int owner_exists;
+ int owner_exists = FALSE;
/* strip path information */
--
1.4.3.4
More information about the wine-patches
mailing list