Commit 9bc6d725 authored by adachan@apple.com's avatar adachan@apple.com

toURLRef() in WKSharedAPICast.h should return null for a null string

https://bugs.webkit.org/show_bug.cgi?id=69380

Reviewed by Jon Honeycutt.

* Shared/API/c/WKSharedAPICast.h:
(WebKit::toURLRef): Add the missing "return" for the null string case.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 61998f59
2011-10-04 Ada Chan <adachan@apple.com>
toURLRef() in WKSharedAPICast.h should return null for a null string
https://bugs.webkit.org/show_bug.cgi?id=69380
Reviewed by Jon Honeycutt.
* Shared/API/c/WKSharedAPICast.h:
(WebKit::toURLRef): Add the missing "return" for the null string case.
2011-10-04 Alexey Proskuryakov <ap@apple.com>
https://bugs.webkit.org/show_bug.cgi?id=67774
......
......@@ -151,7 +151,7 @@ inline WKStringRef toCopiedAPI(const String& string)
inline ProxyingRefPtr<WebURL> toURLRef(StringImpl* string)
{
if (!string)
ProxyingRefPtr<WebURL>(0);
return ProxyingRefPtr<WebURL>(0);
return ProxyingRefPtr<WebURL>(WebURL::create(String(string)));
}
......
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