Cleanups from 'sparse', #149922, Kjartan Maraas

Wed Sep 22 14:07:47 2004  Owen Taylor  <otaylor@redhat.com>

        Cleanups from 'sparse', #149922, Kjartan Maraas

        * pango/pango-utils.c (read_config): () => (void) in
        definition.

        * pango/pangofc-fontmap.c (pango_fc_font_map_list_families):
        Initialize *n_families, not n_families.

        * pango/pangofc-fontmap.c pango/pangoft2.c opentype/ftxgdef.c
        opentype/ftxgpos.c opentype/ftxgsub.c: : Fix various 0/NULL
        confusion.
This commit is contained in:
Owen Taylor 2004-09-22 18:14:55 +00:00 committed by Owen Taylor
parent 8b654dfb5a
commit 346d3b3cac
3 changed files with 5 additions and 5 deletions

View File

@ -179,7 +179,7 @@
if ( !retptr )
return TT_Err_Invalid_Argument;
if (( error = tt_face->goto_table( tt_face, TTAG_GDEF, stream, 0 ) ))
if (( error = tt_face->goto_table( tt_face, TTAG_GDEF, stream, NULL ) ))
return error;
if (( error = TT_New_GDEF_Table ( face, &gdef ) ))

View File

@ -102,7 +102,7 @@
if ( !stream )
return TT_Err_Invalid_Face_Handle;
if (( error = tt_face->goto_table( tt_face, TTAG_GPOS, stream, 0 ) ))
if (( error = tt_face->goto_table( tt_face, TTAG_GPOS, stream, NULL ) ))
return error;
base_offset = FILE_Pos();
@ -663,7 +663,7 @@
{
an->af.af3.XDeviceTable.StartSize = 0;
an->af.af3.XDeviceTable.EndSize = 0;
an->af.af3.XDeviceTable.DeltaValue = 0;
an->af.af3.XDeviceTable.DeltaValue = NULL;
}
if ( ACCESS_Frame( 2L ) )
@ -688,7 +688,7 @@
{
an->af.af3.YDeviceTable.StartSize = 0;
an->af.af3.YDeviceTable.EndSize = 0;
an->af.af3.YDeviceTable.DeltaValue = 0;
an->af.af3.YDeviceTable.DeltaValue = NULL;
}
break;

View File

@ -90,7 +90,7 @@
if ( !retptr )
return TT_Err_Invalid_Argument;
if (( error = tt_face->goto_table( tt_face, TTAG_GSUB, stream, 0 ) ))
if (( error = tt_face->goto_table( tt_face, TTAG_GSUB, stream, NULL ) ))
return error;
base_offset = FILE_Pos();