about summary refs log tree commit diff stats
path: root/about.c
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-08-24 14:03:27 -0400
committerJosh Rickmar <jrick@devio.us>2012-08-24 14:03:27 -0400
commitb8e326408ea7dc00e6c9a305a7f2a2d68435c2d9 (patch)
tree0bee6dd652fa0f5960969f1d2718ec01ce9647cc /about.c
parent1e24b42bc136b2cc0f06b6db1ae31472566ab541 (diff)
downloadxombrero-b8e326408ea7dc00e6c9a305a7f2a2d68435c2d9.tar.gz
Make removing links from :favedit not crash. tsk tsk me
Diffstat (limited to 'about.c')
-rw-r--r--about.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/about.c b/about.c
index bd49433..59da947 100644
--- a/about.c
+++ b/about.c
@@ -1295,7 +1295,7 @@ xtp_page_fl(struct tab *t, struct karg *args)
 	}
 
 	/* body */
-	if (args->i & XT_DELETE)
+	if (args && args->i & XT_DELETE)
 		body = g_strdup_printf("<table style='table-layout:fixed'><tr>"
 		    "<th style='width: 40px'>&#35;</th><th>Link</th>"
 		    "<th style='width: 40px'>Rm</th></tr>\n");
@@ -1320,7 +1320,7 @@ xtp_page_fl(struct tab *t, struct karg *args)
 			}
 
 		tmp = body;
-		if (args->i & XT_DELETE)
+		if (args && args->i & XT_DELETE)
 			body = g_strdup_printf("%s<tr>"
 			    "<td>%d</td>"
 			    "<td><a href='%s'>%s</a></td>"