Introduction
Introduction Statistics Contact Development Disclaimer Help
urls_read: exit early if there is a read error - sfeed_curses - sfeed curses UI…
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
commit c01bf03a25c90f8bb623f60ec6fa7c961997debb
parent b4c423045934c3a9562091b8cf2d5db888d3a136
Author: Hiltjo Posthuma <[email protected]>
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);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.