From: Jeff King Date: Fri, 20 Feb 2009 03:23:43 +0000 (-0500) Subject: Add missing NULL in blame_grep X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=de5969ac01296177d2bf736b8737cdb4181f072d;p=tig.git Add missing NULL in blame_grep Commit 436674f introduced a grep_text utility function which takes a NULL-terminated list; the callsite in blame_grep forgot to put in a NULL, leading to segmentation faults. Signed-off-by: Jeff King Signed-off-by: Jonas Fonseca --- diff --git a/tig.c b/tig.c index 4a04d03..2a3ab3a 100644 --- a/tig.c +++ b/tig.c @@ -4590,6 +4590,7 @@ blame_grep(struct view *view, struct line *line) commit ? commit->id : "", commit && opt_author ? commit->author : "", commit && opt_date ? mkdate(&commit->time) : "", + NULL }; return grep_text(view, text);