Commit b05b4531 authored by bfulgham@webkit.org's avatar bfulgham@webkit.org

Rubber-stamped by Kevin Ollivier.

Handle crash in wx due to null value passed to strlen in
the CString constructor.

* platform/network/curl/ResourceHandleManager.cpp:
(WebCore::certificatePath):  Check for null return from getenv
and use default CString constructor instead.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47138 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 02330792
2009-08-12 Brent Fulgham <bfulgham@webkit.org>
Rubber-stamped by Kevin Ollivier.
Handle crash in wx due to null value passed to strlen in
the CString constructor.
* platform/network/curl/ResourceHandleManager.cpp:
(WebCore::certificatePath): Check for null return from getenv
and use default CString constructor instead.
2009-08-12 Yong Li <yong.li@torchmobile.com>
Reviewed by Eric Seidel.
......@@ -67,7 +67,11 @@ static CString certificatePath()
return path;
}
#endif
return getenv("CURL_CA_BUNDLE_PATH");
char* envPath = getenv("CURL_CA_BUNDLE_PATH");
if (envPath)
return envPath;
return CString();
}
ResourceHandleManager::ResourceHandleManager()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment