summaryrefslogtreecommitdiffstats
path: root/src/core/image.c
diff options
context:
space:
mode:
authorHolger Lubitz2007-07-06 21:08:21 +0200
committerHolger Lubitz2007-07-06 21:08:21 +0200
commit1ccb6f9dc6a1fc50f4cae8d3c886494e7e8e3240 (patch)
tree1a14f14bd0ac4a676dc0e17cad743975d20a41ee /src/core/image.c
parentconvert to zalloc (diff)
downloadipxe-1ccb6f9dc6a1fc50f4cae8d3c886494e7e8e3240.tar.gz
ipxe-1ccb6f9dc6a1fc50f4cae8d3c886494e7e8e3240.tar.xz
ipxe-1ccb6f9dc6a1fc50f4cae8d3c886494e7e8e3240.zip
convert to zalloc
Diffstat (limited to 'src/core/image.c')
-rw-r--r--src/core/image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/image.c b/src/core/image.c
index 08a129ff..04bd0839 100644
--- a/src/core/image.c
+++ b/src/core/image.c
@@ -62,9 +62,8 @@ static void free_image ( struct refcnt *refcnt ) {
struct image * alloc_image ( void ) {
struct image *image;
- image = malloc ( sizeof ( *image ) );
+ image = zalloc ( sizeof ( *image ) );
if ( image ) {
- memset ( image, 0, sizeof ( *image ) );
image->refcnt.free = free_image;
}
return image;