mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-08 01:36:41 +08:00
test: output the test file path which we failed to open.
Also properly free the string in such case.
This commit is contained in:
parent
94b10b9b29
commit
6cf13f108b
@ -100,7 +100,9 @@ main(int argc, char ** argv)
|
||||
{
|
||||
/* Error opening the test file. */
|
||||
fprintf(stderr,
|
||||
"uchardet-tests: error opening the test file\n");
|
||||
"uchardet-tests: error opening the test file \"%s\"\n",
|
||||
filename);
|
||||
free(filename);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user