2009-01-29 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-impl.c (_hb_alloc): Use calloc(),
instead of malloc()ing and memset()ing.
svn path=/trunk/; revision=2818
2009-01-29 Behdad Esfahbod <behdad@gnome.org>
+ * pango/opentype/harfbuzz-impl.c (_hb_alloc): Use calloc(),
+ instead of malloc()ing and memset()ing.
+
+2009-01-29 Behdad Esfahbod <behdad@gnome.org>
+
* pango/opentype/harfbuzz-dump-main.c (main): Remove old cruft.
2009-01-29 Behdad Esfahbod <behdad@gnome.org>
if ( size > 0 )
{
- block = malloc( size );
+ block = calloc( 1, size );
if ( !block )
error = ERR(HB_Err_Out_Of_Memory);
- else
- memset( (char*)block, 0, (size_t)size );
}
*perror = error;