From: Holger Lubitz Date: Sun, 17 Jun 2007 23:24:46 +0000 (+0200) Subject: convert to zalloc X-Git-Tag: v0.9.3~274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f77d9469a49a160acf5395a92d782bbe63c18fa0;p=thirdparty%2Fipxe.git convert to zalloc --- 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;