--------------------- PatchSet 11191 Date: 2007/01/24 22:42:06 Author: wessels Branch: HEAD Tag: (none) Log: Initialize unused fields of diomsg in messages from diskd to squid. Previously, the diskd helper did not initialize the unused fields of diomsg. This was annoying when looking at debugging output and trying to match requests with responses. This patch initializes the unused fields. Members: src/fs/diskd/diskd.c:1.11->1.12 Index: squid/src/fs/diskd/diskd.c =================================================================== RCS file: /cvsroot/squid/squid/src/fs/diskd/diskd.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- squid/src/fs/diskd/diskd.c 17 May 2005 16:56:43 -0000 1.11 +++ squid/src/fs/diskd/diskd.c 24 Jan 2007 22:42:06 -0000 1.12 @@ -1,5 +1,5 @@ /* - * $Id: diskd.c,v 1.11 2005/05/17 16:56:43 hno Exp $ + * $Id: diskd.c,v 1.12 2007/01/24 22:42:06 wessels Exp $ * * DEBUG: section -- External DISKD process implementation. * AUTHOR: Harvest Derived @@ -221,9 +221,12 @@ { char *buf = NULL; s->mtype = r->mtype; + s->id = r->id; + s->seq_no = r->seq_no; /* optional, debugging */ s->callback_data = r->callback_data; + s->size = 0; /* optional, debugging */ + s->offset = 0; /* optional, debugging */ s->shm_offset = r->shm_offset; - s->id = r->id; if (s->shm_offset > -1) buf = shmbuf + s->shm_offset; switch (r->mtype) {