diff --git a/dlls/comctl32/datetime.c b/dlls/comctl32/datetime.c index 0fae47cc536..9b8842d7c83 100644 --- a/dlls/comctl32/datetime.c +++ b/dlls/comctl32/datetime.c @@ -607,7 +607,7 @@ DATETIME_Refresh (DATETIME_INFO *infoPtr, HDC hdc) RECT *checkbox = &infoPtr->checkbox; SIZE size; COLORREF oldTextColor; - SHORT fieldWidth; + SHORT fieldWidth = 0; /* draw control edge */ TRACE("\n"); diff --git a/dlls/itss/chm_lib.c b/dlls/itss/chm_lib.c index 3eef05d6d88..7ced58d70c5 100644 --- a/dlls/itss/chm_lib.c +++ b/dlls/itss/chm_lib.c @@ -1289,7 +1289,7 @@ static Int64 _chm_decompress_region(struct chmFile *h, UInt64 nBlock, nOffset; UInt64 nLen; UInt64 gotLen; - UChar *ubuffer; + UChar *ubuffer = NULL; if (len <= 0) return (Int64)0; diff --git a/dlls/kernel/instr.c b/dlls/kernel/instr.c index dd23f366492..14ed2269672 100644 --- a/dlls/kernel/instr.c +++ b/dlls/kernel/instr.c @@ -103,7 +103,7 @@ static BOOL INSTR_ReplaceSelector( CONTEXT86 *context, WORD *sel ) static BYTE *INSTR_GetOperandAddr( CONTEXT86 *context, BYTE *instr, int long_addr, int segprefix, int *len ) { - int mod, rm, base, index = 0, ss = 0, seg = 0, off; + int mod, rm, base = 0, index = 0, ss = 0, seg = 0, off; LDT_ENTRY entry; #define GET_VAL(val,type) \ diff --git a/dlls/wineps/truetype.c b/dlls/wineps/truetype.c index e549584c9f8..609e9af59aa 100644 --- a/dlls/wineps/truetype.c +++ b/dlls/wineps/truetype.c @@ -425,7 +425,7 @@ static BOOL BuildTrueTypeAFM(FT_Face face) { AFM *afm; AFMMETRICS *metrics; - LPSTR font_name, full_name, family_name, encoding_scheme; + LPSTR font_name, full_name, family_name, encoding_scheme = NULL; FT_CharMap charmap; BOOL retval, added; diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c index b19b9d932be..d0731b44194 100644 --- a/dlls/wintab32/context.c +++ b/dlls/wintab32/context.c @@ -548,7 +548,7 @@ BOOL WINAPI WTPacket(HCTX hCtx, UINT wSerial, LPVOID lpPkt) { int rc = 0; LPOPENCONTEXT context; - LPWTPACKET wtp; + LPWTPACKET wtp = NULL; TRACE("(%p, %d, %p)\n", hCtx, wSerial, lpPkt); diff --git a/programs/winedbg/break.c b/programs/winedbg/break.c index 717bdaeb441..f5b5cf7bd13 100644 --- a/programs/winedbg/break.c +++ b/programs/winedbg/break.c @@ -711,7 +711,7 @@ static BOOL should_stop(int bpnum) BOOL break_should_continue(ADDRESS* addr, DWORD code, int* count, BOOL* is_break) { int bpnum; - DWORD oldval; + DWORD oldval = 0; int wpnum; enum dbg_exec_mode mode = dbg_curr_thread->exec_mode; diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index b1e099d53da..f0428773535 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -292,7 +292,7 @@ static void dump_sections(void* addr, unsigned num_sect) static void dump_dir_exported_functions(void) { - unsigned int size; + unsigned int size = 0; IMAGE_EXPORT_DIRECTORY *exportDir = get_dir_and_size(IMAGE_FILE_EXPORT_DIRECTORY, &size); unsigned int i; DWORD* pFunc;