diff options
Diffstat (limited to 'osdep.c')
-rw-r--r-- | osdep.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |