summaryrefslogtreecommitdiffstats
path: root/mbbsd/passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r--mbbsd/passwd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c
index f5f03ca5..b84ef7b3 100644
--- a/mbbsd/passwd.c
+++ b/mbbsd/passwd.c
@@ -76,8 +76,7 @@ passwd_update(int num, userec_t * buf)
if (num < 1 || num > MAX_USERS)
return -1;
buf->money = moneyof(num);
- pwdfd = currutmp->alerts;
- if(usernum == num && (pwdfd & ALERT_PWD))
+ if(usernum == num && ((pwdfd = currutmp->alerts) & ALERT_PWD))
{
userec_t u;
passwd_query(num, &u);