diff options
Diffstat (limited to 'source4/lib/xfile.c')
-rw-r--r-- | source4/lib/xfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/xfile.c b/source4/lib/xfile.c index 856e5dd6e6..794e3f0f5e 100644 --- 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)); |