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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user