Code

Fix uninitialized variable warning
authorJonas Fonseca <fonseca@diku.dk>
Thu, 27 Mar 2008 19:20:10 +0000 (20:20 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 27 Mar 2008 19:45:21 +0000 (20:45 +0100)
tig.c

diff --git a/tig.c b/tig.c
index a54e57a41ad2cf86c5ecb32f66f78ed96c305e62..dc48eed4ebac1a882dd9d26d39944e5ed6603bd7 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -3414,9 +3414,9 @@ parse_blame_commit(struct view *view, char *text, int *blamed)
 
                blame = line->data;
                blame->commit = commit;
+               blame->header = !group;
                line->dirty = 1;
        }
-       blame->header = 1;
 
        return commit;
 }