]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/ctdlproto/serv_rooms.c
When opening a cursor, always read through to the end.
[citadel.git] / citadel / server / modules / ctdlproto / serv_rooms.c
index 29f57c8883241bd84e6d0ae71c22ae4a2efaa266..f8d571d1f97a489f83a2ab08c04d4e72995c2217 100644 (file)
@@ -327,7 +327,7 @@ void cmd_whok(char *cmdbuf) {
 
        cprintf("%d Who knows room:\n", LISTING_FOLLOWS);
        cdb_rewind(CDB_USERS);
-       while (cdbus = cdb_next_item(CDB_USERS), cdbus.val.ptr!=NULL) {
+       while (cdbus = cdb_next_item(CDB_USERS), cdbus.val.ptr!=NULL) {         // always read to the end
                memset(&temp, 0, sizeof temp);
                memcpy(&temp, cdbus.val.ptr, sizeof temp);
                CtdlRoomAccess(&CC->room, &temp, &ra, NULL);