Fix yajl_test bug

Test program doesn't always read from stdin, although in both
the original and the EPICS test director it does.
This commit is contained in:
Andrew Johnson
2017-06-26 23:32:10 -05:00
parent c288de3bf2
commit 50028f2eda

View File

@@ -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;