Marcus Meissner : dbghelp: Initialize ret (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Dec 29 09:06:42 CST 2009
Module: wine
Branch: master
Commit: c39cd4c0ce4266a09bb71fcc59d3583f1a55f919
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c39cd4c0ce4266a09bb71fcc59d3583f1a55f919
Author: Marcus Meissner <meissner at suse.de>
Date: Mon Dec 28 21:13:10 2009 +0100
dbghelp: Initialize ret (Coverity).
---
dlls/dbghelp/pe_module.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dbghelp/pe_module.c b/dlls/dbghelp/pe_module.c
index 5cce6a3..2937013 100644
--- a/dlls/dbghelp/pe_module.c
+++ b/dlls/dbghelp/pe_module.c
@@ -122,7 +122,7 @@ static BOOL pe_load_stabs(const struct process* pcs, struct module* module,
IMAGE_SECTION_HEADER* sect_stabs = NULL;
IMAGE_SECTION_HEADER* sect_stabstr = NULL;
int i;
- BOOL ret;
+ BOOL ret = FALSE;
section = (IMAGE_SECTION_HEADER*)
((char*)&nth->OptionalHeader + nth->FileHeader.SizeOfOptionalHeader);
@@ -163,7 +163,7 @@ static BOOL pe_load_dwarf(const struct process* pcs, struct module* module,
int i;
const char* strtable;
const char* sectname;
- BOOL ret;
+ BOOL ret = FALSE;
if (nth->FileHeader.PointerToSymbolTable && nth->FileHeader.NumberOfSymbols)
/* FIXME: no way to get strtable size */
More information about the wine-cvs
mailing list