From 89aa7406ae0e983be53103b7b61b9a1fd3ca9419 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Mon, 18 Jul 2011 16:35:07 +0000 Subject: In cmd_keypress_cb(), sanity-check c for NULL consistently. From: Fabian Keil --- xxxterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xxxterm.c') 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; } -- cgit 1.4.1-2-gfad0