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;