about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStevan Andjelkovic <stevan@student.chalmers.se>2011-02-18 01:18:28 +0000
committerStevan Andjelkovic <stevan@student.chalmers.se>2011-02-18 01:18:28 +0000
commit6d66f416b61a6eb1515c50219e4e0c31f248688f (patch)
treea1a5781abc39b67b94c0c9471cc3b6770aa909b0
parent2f8dd93af9aa56451426c394fa196f8d767e2999 (diff)
downloadxombrero-6d66f416b61a6eb1515c50219e4e0c31f248688f.tar.gz
Small fix to my previous patch.
ok marco@
-rw-r--r--xxxterm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 187586c..7d25a33 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -2104,11 +2104,10 @@ toggle_cwl(struct tab *t, struct karg *args)
 	if (args == NULL)
 		return (1);
 
-	if ((uri = get_uri(t->wv)) == NULL)
-		return (1);
-
+	uri = get_uri(t->wv);
 	dom = find_domain(uri, 1);
 	d = wl_find(dom, &c_wl);
+
 	if (d == NULL)
 		es = 0;
 	else
@@ -2161,10 +2160,9 @@ toggle_js(struct tab *t, struct karg *args)
 	else
 		return (1);
 
-	if ((uri = get_uri(t->wv)) == NULL)
-		return (1);
-
+	uri = get_uri(t->wv);
 	dom = find_domain(uri, 1);
+
 	if (uri == NULL || dom == NULL) {
 		show_oops(t, "Can't toggle domain in JavaScript white list");
 		goto done;