Don't ignore error return value of hb_buffer_copy_output_glyph(). Patch
authorBehdad Esfahbod <behdad@gnome.org>
Tue, 21 Aug 2007 01:38:07 +0000 (01:38 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Tue, 21 Aug 2007 01:38:07 +0000 (01:38 +0000)
2007-08-20  Behdad Esfahbod  <behdad@gnome.org>

        * pango/opentype/harfbuzz-gsub.c (GSUB_Do_String_Lookup): Don't
        ignore error return value of hb_buffer_copy_output_glyph().  Patch
        sent to harfbuzz-list.

src/harfbuzz-gsub.c

index 1d91a11..00db6e8 100644 (file)
@@ -4396,7 +4396,7 @@ static FT_Error  GSUB_Do_String_Lookup( HB_GSUBHeader*   gsub,
       error = HB_Err_Not_Covered;
 
     if ( error == HB_Err_Not_Covered )
-      if ( hb_buffer_copy_output_glyph ( buffer ) )
+      if ( (error = hb_buffer_copy_output_glyph ( buffer ) ) )
        return error;
   }