--------------------- PatchSet 11223 Date: 2007/02/03 21:48:16 Author: hno Branch: SQUID_2_6 Tag: (none) Log: Author: wessels MFC: 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.11.2.1 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.11.2.1 diff -u -r1.11 -r1.11.2.1 --- squid/src/fs/diskd/diskd.c 17 May 2005 16:56:43 -0000 1.11 +++ squid/src/fs/diskd/diskd.c 3 Feb 2007 21:48:16 -0000 1.11.2.1 @@ -1,5 +1,5 @@ /* - * $Id: diskd.c,v 1.11 2005/05/17 16:56:43 hno Exp $ + * $Id: diskd.c,v 1.11.2.1 2007/02/03 21:48:16 hno 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) {