How about this one...

This doesn't solve the problem, but it should be applied anyway. A few comments below.

+/*
+ * return a empty initialized element;
+ */
+static struct element *element_new(void)
+{
+ struct element *new = (struct element *)my_malloc(sizeof(struct element));
+       if (new != NULL) {
+               bzero(new,sizeof(struct element));
+               new->data = NULL;
+               new->dsize = NULL;
+               new->nextnode = NULL;

The point of the bzero(3) call is so that you don't have to set data, dsize, nextnode, etc. to NULL. I'd remove those for now, they're not needed. Is there a list init call that needs to be added to imap4.c, similar to what was applied to pop3.c? -sc

--
Sean Chittenden

Reply via email to