Permalink
Browse files

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 <peff@peff.net>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
  • Loading branch information...
1 parent 920d8d1 commit de5969ac01296177d2bf736b8737cdb4181f072d @peff peff committed with jonas Feb 20, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 tig.c
View
1 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);

0 comments on commit de5969a

Please sign in to comment.