Commit 07d89866 authored by bellard's avatar bellard
Browse files

added qemu_mallocz()


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@660 c046a42c-6fe2-441c-8c8c-71466251a162
parent caed8802
......@@ -281,6 +281,16 @@ void *qemu_malloc(size_t size)
#endif
void *qemu_mallocz(size_t size)
{
void *ptr;
ptr = qemu_malloc(size);
if (!ptr)
return NULL;
memset(ptr, 0, size);
return ptr;
}
/****************************************************************/
/* printf support */
......
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