r8141: Update volker's valgrind fix in r8097. Same effect, just helps me
authorGerald Carter <jerry@samba.org>
Mon, 4 Jul 2005 13:19:05 +0000 (13:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:58:11 +0000 (10:58 -0500)
to remember what is going on here better.
(This used to be commit 4a8068ce632adc34e88c128c4a6cc4c690d082bf)

source3/lib/privileges.c

index 30db2fc2bb7ffa5339a6c99ec1a192f2119af587..05dff33307c6a0ba71115f33ea1bcd25bd6f4e5d 100644 (file)
@@ -539,6 +539,9 @@ BOOL grant_privilege(const DOM_SID *sid, const SE_PRIV *priv_mask)
 {
        SE_PRIV old_mask, new_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
        if ( get_privileges( sid, &old_mask ) )
                se_priv_copy( &new_mask, &old_mask );
        else