Code

Add missing NULL in blame_grep
authorJeff King <peff@peff.net>
Fri, 20 Feb 2009 03:23:43 +0000 (22:23 -0500)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 20 Feb 2009 14:04:16 +0000 (15:04 +0100)
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>
tig.c

diff --git a/tig.c b/tig.c
index 4a04d0373a732cb9f0574fe8d2562b8416424d76..2a3ab3afc1f1f3b292cec1a8f5c2b7f76cdfae2b 100644 (file)
--- 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);