summaryrefslogtreecommitdiffstats
path: root/mbbsd/assess.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/assess.c')
-rw-r--r--mbbsd/assess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/assess.c b/mbbsd/assess.c
index 35badc8c..af361a13 100644
--- a/mbbsd/assess.c
+++ b/mbbsd/assess.c
@@ -20,9 +20,9 @@ int inc_##_attr(char *userid, int num) \
int uid = getuser(userid);\
if( uid > 0 ){ \
userinfo_t *uinfo = search_ulist(uid); \
- inc(&uinfo->_attr, num); \
if (uinfo != NULL) \
- inc(&xuser._attr, num); \
+ inc(&uinfo->_attr, num); \
+ inc(&xuser._attr, num); \
passwd_update(uid, &xuser); \
return xuser._attr; }\
return 0;\