about summary refs log tree commit diff stats
path: root/xxxterm.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-07-18 16:35:07 +0000
committerMarco Peereboom <marco@conformal.com>2011-07-18 16:35:07 +0000
commit89aa7406ae0e983be53103b7b61b9a1fd3ca9419 (patch)
treebbae9c6b5d5130660473efb84966b61bc3511eea /xxxterm.c
parentc54ab7df88ee7c00c8e6e1703303db0b1e0b6a19 (diff)
downloadxombrero-89aa7406ae0e983be53103b7b61b9a1fd3ca9419.tar.gz
In cmd_keypress_cb(), sanity-check c for NULL consistently.
From: Fabian Keil <fk@fabiankeil.de>
Diffstat (limited to 'xxxterm.c')
-rw-r--r--xxxterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index b33ee11..3473c61 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -6955,7 +6955,7 @@ cmd_keypress_cb(GtkEntry *w, GdkEventKey *e, struct tab *t)
 		focus_webview(t);
 
 		/* cancel search */
-		if (c[0] == '/' || c[0] == '?')
+		if (c != NULL && (c[0] == '/' || c[0] == '?'))
 			webkit_web_view_unmark_text_matches(t->wv);
 		goto done;
 	}