Code

Remove useless check in blame_read_file()
authorJonas Fonseca <fonseca@diku.dk>
Fri, 2 May 2008 22:01:59 +0000 (00:01 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 2 May 2008 22:02:04 +0000 (00:02 +0200)
tig.c

diff --git a/tig.c b/tig.c
index d96b834517d00d2b54e9186a71bf6483cf14d35a..3802204dc05e6f294e4ecf3fcafbbc42b7c654b8 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -3583,9 +3583,6 @@ blame_read_file(struct view *view, char *line)
                size_t linelen = strlen(line);
                struct blame *blame = malloc(sizeof(*blame) + linelen);
 
-               if (!line)
-                       return FALSE;
-
                blame->commit = NULL;
                strncpy(blame->text, line, linelen);
                blame->text[linelen] = 0;