|
|
urls_read: 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 c01bf03a25c90f8bb623f60ec6fa7c961997debb |
|
|
 |
parent b4c423045934c3a9562091b8cf2d5db888d3a136 |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
Date: Wed, 14 Jul 2021 17:58:29 +0200 |
|
|
|
|
|
|
|
urls_read: 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 |
|
|
|
@@ -2044,6 +2044,8 @@ urls_read(void) |
|
|
|
} |
|
|
|
urls[nurls++] = estrdup(line); |
|
|
|
} |
|
|
|
+ if (ferror(fp)) |
|
|
|
+ die("getline: %s", urlfile); |
|
|
|
fclose(fp); |
|
|
|
free(line); |
|
|
|
|
|