From 2f9e170f45e128eb6ab6bd97c9c8b40dcd9a97fa Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 4 Dec 2004 09:30:38 +0000 Subject: r4058: added a type safe version of smb_xmalloc() (This used to be commit 1235afa5fe3a396cd7a180cbc500834a30fbaa80) --- source4/libads/ads_struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/libads') diff --git a/source4/libads/ads_struct.c b/source4/libads/ads_struct.c index 9774968e12..a6c679e002 100644 --- a/source4/libads/ads_struct.c +++ b/source4/libads/ads_struct.c @@ -87,7 +87,7 @@ ADS_STRUCT *ads_init(const char *realm, { ADS_STRUCT *ads; - ads = (ADS_STRUCT *)smb_xmalloc(sizeof(*ads)); + ads = smb_xmalloc_p(ADS_STRUCT); ZERO_STRUCTP(ads); ads->server.realm = realm? strdup(realm) : NULL; -- cgit