summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5667089)
raw | patch | inline | side by side (parent: 5667089)
author | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 2 May 2008 22:01:59 +0000 (00:01 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 2 May 2008 22:02:04 +0000 (00:02 +0200) |
tig.c | patch | blob | history |
index d96b834517d00d2b54e9186a71bf6483cf14d35a..3802204dc05e6f294e4ecf3fcafbbc42b7c654b8 100644 (file)
--- a/tig.c
+++ b/tig.c
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;