Commit c35961a9 authored by Alexander Richardson's avatar Alexander Richardson Committed by Werner Lemberg
Browse files

* tests/issue-1063/main.c (main): Fix uninitialized variable.

I tried running `meson test` but the test just crashed and gdb
reported that the face argument to `FT_Get_Char_Index` was nonsense.
With this change the test prints 'Could not open file: ' as it
should.
parent 552fc97f
Pipeline #361275 passed with stage
in 57 seconds
2021-07-15 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
* tests/issue-1063/main.c (main): Fix uninitialized variable.
I tried running `meson test` but the test just crashed and gdb
reported that the face argument to `FT_Get_Char_Index` was nonsense.
With this change the test prints 'Could not open file: ' as it
should.
2021-07-16 Werner Lemberg <wl@gnu.org>
[smooth] Minor fixes.
......
......@@ -7,14 +7,13 @@ int
main( void )
{
FT_Library library;
FT_Face face;
FT_Face face = NULL;
/* Assumes this is run from out/ build directory though 'meson test -C out' */
const char* filepath = "../tests/data/As.I.Lay.Dying.ttf";
FT_Init_FreeType( &library );
FT_New_Face( library, filepath, 0, &face );
if ( !face )
if ( FT_New_Face( library, filepath, 0, &face ) != 0 )
{
fprintf( stderr, "Could not open file: %s\n", filepath );
return 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment