make sure it returns NULL on EOF (it does)

git-svn-id: svn+ssh://svn.code.sf.net/p/cmusphinx/code/trunk/sphinxbase@7728 94700074-3cef-4d97-a70e-9c8c206c02f5
This commit is contained in:
dhdfu
2008-02-02 21:50:05 +00:00
parent 43dce6a52e
commit d7e5d0973d
+5
View File
@@ -61,6 +61,11 @@ main(int argc, char *argv[])
return 1;
}
ckd_free(line);
line = fread_line(fp, &len);
if (line != NULL) {
printf("%p != NULL\n", line);
return 1;
}
}
else if (!strcmp(argv[1], "string_trim")) {
char *foo = ckd_salloc("\t foo bar baz \n");