Commit 72fd2e7b authored by carlosgc@webkit.org's avatar carlosgc@webkit.org

[GTK] webkitCredentialGetCredential returns a temporary in g_return_val_if_fail

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

Reviewed by Philippe Normand.

* UIProcess/API/gtk/WebKitCredential.cpp:
(webkitCredentialGetCredential): Use ASSERT() instead of
g_return_val_if_fail() since this is a private function.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8e03e247
2013-08-26 Carlos Garcia Campos <cgarcia@igalia.com>
[GTK] webkitCredentialGetCredential returns a temporary in g_return_val_if_fail
https://bugs.webkit.org/show_bug.cgi?id=120287
Reviewed by Philippe Normand.
* UIProcess/API/gtk/WebKitCredential.cpp:
(webkitCredentialGetCredential): Use ASSERT() instead of
g_return_val_if_fail() since this is a private function.
2013-08-25 Zan Dobersek <zdobersek@igalia.com>
Unreviewed GTK build fix after r154565.
......
......@@ -52,8 +52,7 @@ WebKitCredential* webkitCredentialCreate(const WebCore::Credential& coreCredenti
const WebCore::Credential& webkitCredentialGetCredential(WebKitCredential* credential)
{
g_return_val_if_fail(credential, WebCore::Credential());
ASSERT(credential);
return credential->credential;
}
......
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