]> code.citadel.org Git - citadel.git/commitdiff
Call bzero() on newly allocated CitContext structs. Hopefully this will
authorArt Cancro <ajc@citadel.org>
Tue, 28 Jul 1998 16:55:50 +0000 (16:55 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 28 Jul 1998 16:55:50 +0000 (16:55 +0000)
clear up the garbaged-wholist problem.  (Applied this fix to the stable code
on Uncensored also)

citadel/sysdep.c

index fa15477e0d1cd6a0ba008a4612949626365dacbb..cda0b0b9377fb10ebfd58ab823a919c499d4d790 100644 (file)
@@ -229,6 +229,7 @@ struct CitContext *CreateNewContext(void) {
                lprintf(1, "citserver: can't allocate memory!!\n");
                pthread_exit(NULL);
                }
+       bzero(me, sizeof(struct CitContext));
 
        begin_critical_section(S_SESSION_TABLE);
        me->next = ContextList;