From 9b62dfaf19b5fc853393bf367f9c61f547d835d3 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 4 Jul 2005 13:19:05 +0000 Subject: r8141: Update volker's valgrind fix in r8097. Same effect, just helps me to remember what is going on here better. (This used to be commit 4a8068ce632adc34e88c128c4a6cc4c690d082bf) --- source3/lib/privileges.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c index 30db2fc2bb..05dff33307 100644 --- a/source3/lib/privileges.c +++ b/source3/lib/privileges.c @@ -539,6 +539,9 @@ BOOL grant_privilege(const DOM_SID *sid, const SE_PRIV *priv_mask) { SE_PRIV old_mask, new_mask; + ZERO_STRUCT( old_mask ); + ZERO_STRUCT( new_mask ); + if ( get_privileges( sid, &old_mask ) ) se_priv_copy( &new_mask, &old_mask ); else -- cgit