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