projects
/
framework
/
uifw
/
harfbuzz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94c21d2
)
Use calloc(), instead of malloc()ing and memset()ing.
author
Behdad Esfahbod
<behdad@gnome.org>
Thu, 29 Jan 2009 09:19:56 +0000
(09:19 +0000)
committer
Behdad Esfahbod
<behdad@src.gnome.org>
Thu, 29 Jan 2009 09:19:56 +0000
(09:19 +0000)
2009-01-29 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/harfbuzz-impl.c (_hb_alloc): Use calloc(),
instead of malloc()ing and memset()ing.
src/harfbuzz-impl.c
patch
|
blob
|
history
diff --git
a/src/harfbuzz-impl.c
b/src/harfbuzz-impl.c
index
e2c8521
..
a3a5589
100644
(file)
--- a/
src/harfbuzz-impl.c
+++ b/
src/harfbuzz-impl.c
@@
-38,11
+38,9
@@
_hb_alloc( HB_UInt size,
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;