From: Jonas Fonseca Date: Fri, 2 May 2008 22:01:59 +0000 (+0200) Subject: Remove useless check in blame_read_file() X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b2c507bfa5cf9024cfba453d24d387915244b777;p=tig.git Remove useless check in blame_read_file() --- diff --git a/tig.c b/tig.c index d96b834..3802204 100644 --- 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;