http://git.etherboot.org
/
people
/
andreif
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aca232c
)
convert to zalloc
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Sun, 17 Jun 2007 23:24:46 +0000
(
01:24
+0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 18:19:55 +0000
(20:19 +0200)
src/core/posix_io.c
patch
|
blob
|
history
diff --git
a/src/core/posix_io.c
b/src/core/posix_io.c
index
f4ae1c1
..
ca29ea6
100644
(file)
--- 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 =
m
alloc ( sizeof ( *file ) );
+ file =
z
alloc ( sizeof ( *file ) );
if ( ! file )
return -ENOMEM;
- memset ( file, 0, sizeof ( *file ) );
file->refcnt.free = posix_file_free;
file->fd = fd;
file->rc = -EINPROGRESS;