fixed uninitialized variables in ACLSetUserCommandBit
Former-commit-id: 7319953ae389817679ce74c44b8baa631a4eafab
This commit is contained in:
parent
13dfc4f228
commit
295106c2b2
@ -383,7 +383,7 @@ int ACLUserCanExecuteFutureCommands(user *u) {
|
|||||||
* zero, the user flag ALLCOMMANDS is cleared since it is no longer possible
|
* zero, the user flag ALLCOMMANDS is cleared since it is no longer possible
|
||||||
* to skip the command bit explicit test. */
|
* to skip the command bit explicit test. */
|
||||||
void ACLSetUserCommandBit(user *u, unsigned long id, int value) {
|
void ACLSetUserCommandBit(user *u, unsigned long id, int value) {
|
||||||
uint64_t word, bit;
|
uint64_t word=0, bit=0;
|
||||||
if (ACLGetCommandBitCoordinates(id,&word,&bit) == C_ERR) return;
|
if (ACLGetCommandBitCoordinates(id,&word,&bit) == C_ERR) return;
|
||||||
if (value) {
|
if (value) {
|
||||||
u->allowed_commands[word] |= bit;
|
u->allowed_commands[word] |= bit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user