Dan Kegel : urlmon: Fix unlikely free of uninitialized pointer.

Alexandre Julliard julliard at winehq.org
Mon Jan 14 09:33:14 CST 2008


Module: wine
Branch: master
Commit: 95fbd7f46bb579e5aba2f8ec2a345ea6ea7710bd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=95fbd7f46bb579e5aba2f8ec2a345ea6ea7710bd

Author: Dan Kegel <dank at kegel.com>
Date:   Sun Jan 13 22:21:41 2008 -0800

urlmon: Fix unlikely free of uninitialized pointer.

---

 dlls/urlmon/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/urlmon/http.c b/dlls/urlmon/http.c
index 9617aed..3056feb 100644
--- a/dlls/urlmon/http.c
+++ b/dlls/urlmon/http.c
@@ -306,7 +306,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
     LPWSTR host = 0, path = 0, user = 0, pass = 0, addl_header = 0,
         post_cookie = 0, optional = 0;
     BYTE security_id[512];
-    LPOLESTR user_agent, accept_mimes[257];
+    LPOLESTR user_agent = NULL, accept_mimes[257];
     HRESULT hres;
 
     static const WCHAR wszHttp[] = {'h','t','t','p',':'};




More information about the wine-cvs mailing list