From 50028f2eda04afb25d9e5882898c678f08bbfb89 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 26 Jun 2017 23:32:10 -0500 Subject: [PATCH] Fix yajl_test bug Test program doesn't always read from stdin, although in both the original and the EPICS test director it does. --- src/libCom/test/yajl_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libCom/test/yajl_test.c b/src/libCom/test/yajl_test.c index c07210ac2..cacfdcb5c 100644 --- a/src/libCom/test/yajl_test.c +++ b/src/libCom/test/yajl_test.c @@ -251,7 +251,7 @@ main(int argc, char ** argv) rd = fread((void *) fileData, 1, bufSize, file); if (rd == 0) { - if (!feof(stdin)) { + if (!feof(file)) { fprintf(stderr, "error reading from '%s'\n", fileName); } break;