Commit dfee752e56872f1c60240f72c9cf845415488bcc

Omar Polo 2022-06-18T16:18:11

tog: reset matched and search data after C-l otherwise they point to free'd data. ok stsp@

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 8782d22..a3b1cc5 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -2800,6 +2800,8 @@ input_log_view(struct tog_view **new_view, struct tog_view *view, int ch)
 		s->thread_args.log_complete = 0;
 		s->quit = 0;
 		s->thread_args.commits_needed = view->nlines;
+		s->matched_entry = NULL;
+		s->search_entry = NULL;
 		break;
 	case 'r':
 		if (view_is_parent_view(view))