Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
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;
}