feed_count: exit early if there is a read error - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed)
 (HTM) git clone git://git.codemadness.org/sfeed_curses
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 59bea5033b7176b6ae9554670bdd02cb76009fae
 (DIR) parent 74959a9fbbc0599ca3c1b43d435fd57f6af2b1ef
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Wed, 14 Jul 2021 17:57:20 +0200
       
       feed_count: exit early if there is a read error
       
       Diffstat:
         M sfeed_curses.c                      |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/sfeed_curses.c b/sfeed_curses.c
       @@ -1376,6 +1376,8 @@ feed_count(struct feed *f, FILE *fp)
                        }
                        f->total++;
                }
       +        if (ferror(fp))
       +                die("getline: %s", f->name);
                free(line);
        }