From c9ca1ec34b48072886183a80442b1e5f2614a46d Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 7 Sep 2006 22:32:47 +0200 Subject: [PATCH] add_pager_refs: rename local line data pointer to commit_id --- tig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tig.c b/tig.c index 1ad1994..08cdd41 100644 --- a/tig.c +++ b/tig.c @@ -2071,14 +2071,14 @@ static void add_pager_refs(struct view *view, struct line *line) { char buf[1024]; - char *data = line->data; + char *commit_id = line->data + STRING_SIZE("commit "); struct ref **refs; int bufpos = 0, refpos = 0; const char *sep = "Refs: "; assert(line->type == LINE_COMMIT); - refs = get_refs(data + STRING_SIZE("commit ")); + refs = get_refs(commit_id); if (!refs) return; -- 2.30.2