From 57787a3668d28808764dd1525a1157e3564d9b46 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sat, 19 Oct 2013 19:38:33 -0400 Subject: [PATCH] Fix warning about uninitialized lineno variable --- tig.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tig.c b/tig.c index e88031b..16b0ea1 100644 --- a/tig.c +++ b/tig.c @@ -3411,8 +3411,7 @@ add_line_at(struct view *view, unsigned long pos, const void *data, enum line_ty if (pos < view->lines) { view->lines++; line = view->line + pos; - if (!custom) - lineno = line->lineno; + lineno = line->lineno; memmove(line + 1, line, (view->lines - pos) * sizeof(*view->line)); while (pos < view->lines) { -- 2.11.4.GIT