|
|
feed_count: exit early if there is a read error - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed) |
|
|
 |
git clone git://git.codemadness.org/sfeed_curses (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit 59bea5033b7176b6ae9554670bdd02cb76009fae |
|
|
 |
parent 74959a9fbbc0599ca3c1b43d435fd57f6af2b1ef |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
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(-) |
|
|
|
--- |
|
|
 |
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); |
|
|
|
} |
|
|
|
|
|