From: Jonas Fonseca Date: Wed, 22 Aug 2007 09:16:05 +0000 (+0200) Subject: Fix warning from blob_read returning pointer instead of bool X-Git-Tag: tig-0.9~13 X-Git-Url: https://git.distorted.org.uk/~mdw/tig/commitdiff_plain/c115e7ac368dc9eb7fbebd24718e6ff2461a9ece Fix warning from blob_read returning pointer instead of bool --- diff --git a/tig.c b/tig.c index 420a13b..82dbd23 100644 --- 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 = {