From f77d9469a49a160acf5395a92d782bbe63c18fa0 Mon Sep 17 00:00:00 2001 From: Holger Lubitz Date: Mon, 18 Jun 2007 01:24:46 +0200 Subject: [PATCH] convert to zalloc --- src/core/posix_io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/posix_io.c b/src/core/posix_io.c index f4ae1c13..ca29ea69 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;