logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: 95138deae3a523bf10b59ec13b6e5b4b0a1456a6
parent: 13f01bbd402ab667e7ee80afc3cfaee2f7b92f44
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  7 Dec 2019 10:51:19 +0100

badwolf.c: badwolf_ensure_uri_scheme never returns NULL

Diffstat:

Mbadwolf.c6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 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; }