diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-20 13:19:12 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-20 17:49:13 +0100 |
commit | 665ce267d994f7feb090c0c695c8462ae2d87a50 (patch) | |
tree | 824c2f257b44bd71f2849d8095edd339f2b3d2dd /sfeed_twtxt.c | |
parent | 49d22d1256498c449b44a80901887bc58b67148c (diff) |
check write errors on the output stream after each feed
This will detect write errors sooner.
Diffstat (limited to 'sfeed_twtxt.c')
-rw-r--r-- | sfeed_twtxt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sfeed_twtxt.c b/sfeed_twtxt.c index 8514bd6..1d8ab36 100644 --- a/sfeed_twtxt.c +++ b/sfeed_twtxt.c @@ -63,6 +63,7 @@ main(int argc, char *argv[]) name = ((name = strrchr(argv[i], '/'))) ? name + 1 : argv[i]; printfeed(fp, name); checkfileerror(fp, argv[i], 'r'); + checkfileerror(stdout, "<stdout>", 'w'); fclose(fp); } } |