summary refs log tree commit diff stats
path: root/src/fe-gtk/fe-gtk.c
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2014-12-08 21:25:00 -0800
committerArnavion <arnavion@gmail.com>2014-12-08 21:25:00 -0800
commit65c8494698f65525e26fc6f6a4a00bcbbf10fa58 (patch)
tree6cc758098a1761f02fde8071bd79fc581401c29c /src/fe-gtk/fe-gtk.c
parent2b94011fdc033cf266a9f1d4084b9c35016502bb (diff)
Removed some unnecessary casts.
Diffstat (limited to 'src/fe-gtk/fe-gtk.c')
-rw-r--r--src/fe-gtk/fe-gtk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c
index 962e9785..e180d46b 100644
--- a/src/fe-gtk/fe-gtk.c
+++ b/src/fe-gtk/fe-gtk.c
@@ -1091,9 +1091,9 @@ fe_open_url (const char *url)
 	/* the http:// part's missing, prepend it, otherwise it won't always work */
 	else if (strchr (url, ':') == NULL)
 	{
-		url = g_strdup_printf ("http://%s", url);
-		fe_open_url_inner (url);
-		g_free ((char *)url);
+		uri = g_strdup_printf ("http://%s", url);
+		fe_open_url_inner (uri);
+		g_free (uri);
 	}
 	/* we have a sane URL, send it to the browser untouched */
 	else