diff options
| author | Holger Lubitz | 2007-06-18 01:24:46 +0200 |
|---|---|---|
| committer | Holger Lubitz | 2007-07-06 20:19:55 +0200 |
| commit | f77d9469a49a160acf5395a92d782bbe63c18fa0 (patch) | |
| tree | 1591b4a5b4eb101c385e3e8411f99b5c945c6981 /src/core | |
| parent | convert to zalloc (diff) | |
| download | ipxe-f77d9469a49a160acf5395a92d782bbe63c18fa0.tar.gz ipxe-f77d9469a49a160acf5395a92d782bbe63c18fa0.tar.xz ipxe-f77d9469a49a160acf5395a92d782bbe63c18fa0.zip | |
convert to zalloc
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/posix_io.c | 3 |
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; |
