fixed uninitialized variables in ACLSetUserCommandBit

Former-commit-id: 7319953ae389817679ce74c44b8baa631a4eafab
This commit is contained in:
christianEQ 2021-01-26 23:29:15 +00:00
parent 13dfc4f228
commit 295106c2b2

View File

@ -383,7 +383,7 @@ int ACLUserCanExecuteFutureCommands(user *u) {
* zero, the user flag ALLCOMMANDS is cleared since it is no longer possible
* to skip the command bit explicit test. */
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 (value) {
u->allowed_commands[word] |= bit;