diff options
badwolf.c: badwolf_ensure_uri_scheme never returns NULL
1 files changed, 2 insertions, 4 deletions
| -rw-r--r-- | badwolf.c | 6 |
@@ -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; } |