Fix warning from blob_read returning pointer instead of bool
[tig] / tig.c
diff --git a/tig.c b/tig.c
index 420a13b..82dbd23 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 = {