git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r4055: fixed more places to use type safe allocation macros
[bbaumbach/samba-autobuild/.git]
/
source4
/
lib
/
xfile.c
diff --git
a/source4/lib/xfile.c
b/source4/lib/xfile.c
index 856e5dd6e6f2351e823de89e9dad636c8862d018..794e3f0f5e83ae8530f894c27dd392f3e024640a 100644
(file)
--- a/
source4/lib/xfile.c
+++ b/
source4/lib/xfile.c
@@
-96,7
+96,7
@@
XFILE *x_fopen(const char *fname, int flags, mode_t mode)
{
XFILE *ret;
- ret =
(XFILE *)malloc(sizeof(XFILE)
);
+ ret =
malloc_p(XFILE
);
if (!ret) return NULL;
memset(ret, 0, sizeof(XFILE));