make this a ZERO_STRUCTP for consitancy with the rest of Samba.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 13 Jul 2002 09:18:55 +0000 (09:18 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 13 Jul 2002 09:18:55 +0000 (09:18 +0000)
(This used to be commit 587a3d91b7226f4e96c4320322f62c6490a3c6ac)

source3/lib/util_sid.c

index 3293026c7d143d412d1bb9b9c25e2522e3137e5b..5dd1d75c701f56e20bd563ca22063fc3088b0f40 100644 (file)
@@ -327,7 +327,7 @@ void sid_copy(DOM_SID *dst, const DOM_SID *src)
 {
        int i;
 
-       memset((char *)dst, '\0', sizeof(DOM_SID));
+       ZERO_STRUCTP(dst);
 
        dst->sid_rev_num = src->sid_rev_num;
        dst->num_auths = src->num_auths;