Code

Fix warning from blob_read returning pointer instead of bool
authorJonas Fonseca <fonseca@diku.dk>
Wed, 22 Aug 2007 09:16:05 +0000 (11:16 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Wed, 22 Aug 2007 09:16:05 +0000 (11:16 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 420a13b886afbcae5bd29676a2ef34c9bca7d96b..82dbd23e7c01831d62549d5852c0c27540a77867 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2876,7 +2876,7 @@ static struct view_ops tree_ops = {
 static bool
 blob_read(struct view *view, char *line)
 {
-       return add_line_text(view, line, LINE_DEFAULT);
+       return add_line_text(view, line, LINE_DEFAULT) != NULL;
 }
 
 static struct view_ops blob_ops = {