winedbg: Avoid "uninitialized variable" compiler warning in types_extract_as_longlong.

Gerald Pfeifer gerald at pfeifer.com
Sun Jun 21 14:30:17 CDT 2015


This happens with recent (development) versions of GCC at least.

---
 programs/winedbg/types.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/programs/winedbg/types.c b/programs/winedbg/types.c
index 31e7d38..b06a43a 100644
--- a/programs/winedbg/types.c
+++ b/programs/winedbg/types.c
@@ -99,6 +99,7 @@ LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue,
             break;
         case btFloat:
             RaiseException(DEBUG_STATUS_NOT_AN_INTEGER, 0, 0, NULL);
+            rtn = 0;
         }
         if (psize) *psize = (unsigned)size;
         if (issigned) *issigned = s;
-- 
2.4.2



More information about the wine-patches mailing list