]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/user_ops.c
Revert "Prepared for upcoming change to cdb_next_item() API."
[citadel.git] / citadel / server / user_ops.c
index 76897347cd11f10674f7e506dba70d17dfca44ba..31bd579d3ab15a884a698142c35c9272a5f550f8 100644 (file)
@@ -1043,8 +1043,10 @@ void ForEachUser(void (*CallBack) (char *, void *out_data), void *in_data) {
                return;
        }
 
-       // Phase 1 : build an array of all our user account names
+
        cdb_rewind(CDB_USERS);
+
+       // Phase 1 : build an array of all our user account names
        while (cdbus = cdb_next_item(CDB_USERS), cdbus != NULL) {
                usptr = (struct ctdluser *) cdbus->ptr;
                if (strlen(usptr->fullname) > 0) {