diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-04 09:30:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:20 -0500 |
commit | 2f9e170f45e128eb6ab6bd97c9c8b40dcd9a97fa (patch) | |
tree | b16853d79b72ea2984e8c67c6f7f800ca9ff0807 /source4/libads | |
parent | fbb5a6a0fabd3d7878f2fa95db3eef3e8504b6d2 (diff) | |
download | samba-2f9e170f45e128eb6ab6bd97c9c8b40dcd9a97fa.tar.gz samba-2f9e170f45e128eb6ab6bd97c9c8b40dcd9a97fa.tar.bz2 samba-2f9e170f45e128eb6ab6bd97c9c8b40dcd9a97fa.zip |
r4058: added a type safe version of smb_xmalloc()
(This used to be commit 1235afa5fe3a396cd7a180cbc500834a30fbaa80)
Diffstat (limited to 'source4/libads')
-rw-r--r-- | source4/libads/ads_struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |