OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caed880
)
added qemu_mallocz()
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 14 Mar 2004 21:41:12 +0000
(21:41 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 14 Mar 2004 21:41:12 +0000
(21:41 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@660
c046a42c
-6fe2-441c-8c8c-
71466251a162
osdep.c
patch
|
blob
|
history
diff --git
a/osdep.c
b/osdep.c
index
d4d3364
..
f843e56
100644
(file)
--- a/
osdep.c
+++ b/
osdep.c
@@
-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 */