Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit95138deae3a523bf10b59ec13b6e5b4b0a1456a6 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-12-07 10:51:19 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-12-15 19:10:53 +0100
Filesd14426b96034ec686bb9f1e616b7e120484c954d
goodwolf-95138deae3a523bf10b59ec13b6e5b4b0a1456a6.tar
goodwolf-95138deae3a523bf10b59ec13b6e5b4b0a1456a6.tar.gz
goodwolf-95138deae3a523bf10b59ec13b6e5b4b0a1456a6.zip
Parent13f01bbd402ab667e7ee80afc3cfaee2f7b92f44 (diff)
badwolf.c: badwolf_ensure_uri_scheme never returns NULL
1 files changed, 2 insertions, 4 deletions
-rw-r--r--badwolf.c6
diff --git a/badwolf.c b/badwolf.c
index fc26407..a69c05a 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -474,12 +474,10 @@ downloadCb_decide_destination(WebKitDownload *download,
static gboolean
locationCb_activate(GtkEntry *location, gpointer user_data)
{
- char *target_url;
struct Client *browser = (struct Client *)user_data;
- target_url = badwolf_ensure_uri_scheme((char *)gtk_entry_get_text(location), TRUE);
-
- if(target_url != NULL) webkit_web_view_load_uri(browser->webView, target_url);
+ webkit_web_view_load_uri(browser->webView,
+ badwolf_ensure_uri_scheme(gtk_entry_get_text(location), TRUE));
return TRUE;
}