summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Lubitz2007-06-18 01:24:46 +0200
committerHolger Lubitz2007-07-06 20:19:55 +0200
commitf77d9469a49a160acf5395a92d782bbe63c18fa0 (patch)
tree1591b4a5b4eb101c385e3e8411f99b5c945c6981
parentconvert to zalloc (diff)
downloadipxe-f77d9469a49a160acf5395a92d782bbe63c18fa0.tar.gz
ipxe-f77d9469a49a160acf5395a92d782bbe63c18fa0.tar.xz
ipxe-f77d9469a49a160acf5395a92d782bbe63c18fa0.zip
convert to zalloc
-rw-r--r--src/core/posix_io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/posix_io.c b/src/core/posix_io.c
index f4ae1c137..ca29ea697 100644
--- a/src/core/posix_io.c
+++ b/src/core/posix_io.c
@@ -215,10 +215,9 @@ int open ( const char *uri_string ) {
return fd;
/* Allocate and initialise structure */
- file = malloc ( sizeof ( *file ) );
+ file = zalloc ( sizeof ( *file ) );
if ( ! file )
return -ENOMEM;
- memset ( file, 0, sizeof ( *file ) );
file->refcnt.free = posix_file_free;
file->fd = fd;
file->rc = -EINPROGRESS;