r8141: Update volker's valgrind fix in r8097. Same effect, just helps me
[ira/wip.git] / 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;
        
+       ZERO_STRUCT( old_mask );
+       ZERO_STRUCT( new_mask );
+
        if ( get_privileges( sid, &old_mask ) )
                se_priv_copy( &new_mask, &old_mask );
        else