r4055: fixed more places to use type safe allocation macros
[bbaumbach/samba-autobuild/.git] / source4 / lib / xfile.c
index 856e5dd6e6f2351e823de89e9dad636c8862d018..794e3f0f5e83ae8530f894c27dd392f3e024640a 100644 (file)
@@ -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));