X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomtst6.c;h=cce5ea107edb229a1e3f815ef93f2e9fe89b6e15;hb=9bf84c30a3d0e3e1d4b9136aee9c0a4b8ae769d2;hp=931e39903da863c0479571df19cd82bd236dc850;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0;p=yaz-moved-to-github.git diff --git a/zoom/zoomtst6.c b/zoom/zoomtst6.c index 931e399..cce5ea1 100644 --- a/zoom/zoomtst6.c +++ b/zoom/zoomtst6.c @@ -29,7 +29,10 @@ static void display_records (const char *tname, ZOOM_resultset r) { printf ("%d %s\n", pos+1, (db ? db : "unknown")); if (render) - fwrite (render, 1, len, stdout); + { + if (fwrite (render, 1, len, stdout) != len) + printf("write to stdout failed\n"); + } printf ("\n"); } }