mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2026-10-28 18:07:22 +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. */
|
/* Error opening the test file. */
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"uchardet-tests: error opening the test file\n");
|
"uchardet-tests: error opening the test file \"%s\"\n",
|
||||||
|
filename);
|
||||||
|
free(filename);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user