diff options
author | Quentin Rameau <quinq@fifth.space> | 2017-05-12 00:03:57 +0200 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2017-05-12 00:30:45 +0200 |
commit | 5e2216c41434219e60ca52bc5f10d34fddbca964 (patch) | |
tree | 23a61e45940b5b77b4aa67eb839923fbbf9b1432 | |
parent | 4a1876eb80dca2c2a3636a7d3af55a34916bb03e (diff) | |
download | surf-5e2216c41434219e60ca52bc5f10d34fddbca964.tar.gz surf-5e2216c41434219e60ca52bc5f10d34fddbca964.tar.bz2 surf-5e2216c41434219e60ca52bc5f10d34fddbca964.zip |
There's no need to call geturi() again in loadchanged
Also call the variable “uri” instead of “title” which was ambiguous
regarding what it is.
-rw-r--r-- | surf.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1375,23 +1375,23 @@ loadfailedtls(WebKitWebView *v, gchar *uri, GTlsCertificate *cert, void loadchanged(WebKitWebView *v, WebKitLoadEvent e, Client *c) { - const char *title = geturi(c); + const char *uri = geturi(c); switch (e) { case WEBKIT_LOAD_STARTED: - setatom(c, AtomUri, title); - c->title = title; + setatom(c, AtomUri, uri); + c->title = uri; c->https = c->insecure = 0; - seturiparameters(c, geturi(c)); + seturiparameters(c, uri); if (c->errorpage) c->errorpage = 0; else g_clear_object(&c->failedcert); break; case WEBKIT_LOAD_REDIRECTED: - setatom(c, AtomUri, title); - c->title = title; - seturiparameters(c, geturi(c)); + setatom(c, AtomUri, uri); + c->title = uri; + seturiparameters(c, uri); break; case WEBKIT_LOAD_COMMITTED: c->https = webkit_web_view_get_tls_info(c->view, &c->cert, |