From: David Levine Date: Sun, 2 Mar 2014 15:30:01 +0000 (-0600) Subject: Added commented explaining use of ci_attrs[0] in X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/04c00bd0605c18fd4bd0811a4b12b67d4cec8afe?ds=sidebyside Added commented explaining use of ci_attrs[0] in build_multipart_alt() of mhfixmsg. --- diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index e445581f..47c03051 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -1269,6 +1269,15 @@ build_multipart_alt (CT first_alt, CT new_part, int type, int subtype) { ct->c_ctinfo.ci_subtype = add (subtypename, NULL); } + /* + * The boundary indicator string must be stored in a + * c_ctinfo.ci_values slot. We use the first slot because this is + * a new object. ci_attrs[0] can be anything, it is never output. + * It is chosen to be very unlikely to collide with a real + * attribute, to contains text that ci_values[0] can point to, and + * gives traceability back to the origin of this part, though that + * would only be useful in a debugger. + */ name = concat (" ", typename, "/", subtypename, boundary_indicator, boundary, NULL); if ((cp = strstr (name, boundary_indicator))) {