Gerald Pfeifer : winedbg: Avoid "uninitialized variable" compiler warning in types_extract_as_longlong.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 22 07:44:58 CDT 2015
Module: wine
Branch: master
Commit: ced33792ff9b3dfae1a391521df6dd4762bd23ae
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ced33792ff9b3dfae1a391521df6dd4762bd23ae
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Sun Jun 21 21:30:17 2015 +0200
winedbg: Avoid "uninitialized variable" compiler warning in types_extract_as_longlong.
---
programs/winedbg/types.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/programs/winedbg/types.c b/programs/winedbg/types.c
index 31e7d38..8e8e9c4 100644
--- a/programs/winedbg/types.c
+++ b/programs/winedbg/types.c
@@ -56,7 +56,7 @@ BOOL types_get_real_type(struct dbg_type* type, DWORD* tag)
LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue,
unsigned* psize, BOOL *issigned)
{
- LONGLONG rtn;
+ LONGLONG rtn = 0;
DWORD tag, bt;
DWORD64 size;
struct dbg_type type = lvalue->type;
@@ -123,7 +123,6 @@ LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue,
default:
WINE_FIXME("Unsupported tag %u\n", tag);
RaiseException(DEBUG_STATUS_NOT_AN_INTEGER, 0, 0, NULL);
- rtn = 0;
}
return rtn;
More information about the wine-cvs
mailing list