[PATCH] mapi32: fixed uninitialized variable (Coverity)

Marcus Meissner marcus at jet.franken.de
Fri Oct 2 03:00:45 CDT 2009


Hi,

The code assumes folder to be NULL initialized
in its error checking.

Ciao, Marcus
---
 dlls/mapi32/sendmail.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mapi32/sendmail.c b/dlls/mapi32/sendmail.c
index 592d762..6635ead 100644
--- a/dlls/mapi32/sendmail.c
+++ b/dlls/mapi32/sendmail.c
@@ -59,7 +59,7 @@ static ULONG sendmail_extended_mapi(LHANDLE mapi_session, ULONG_PTR uiparam, lpM
     IMAPITable* msg_table;
     LPSRowSet rows = NULL;
     IMsgStore* msg_store;
-    IMAPIFolder* folder;
+    IMAPIFolder* folder = NULL;
     LPENTRYID entry_id;
     LPSPropValue props;
     ULONG entry_len;
-- 
1.5.6



More information about the wine-patches mailing list