Repository: trafficserver Updated Branches: refs/heads/master a34bebbe5 -> 8dda144a5
Fix unitialized var complaint from compiler. Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/8dda144a Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/8dda144a Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/8dda144a Branch: refs/heads/master Commit: 8dda144a5b718a98e0307d4d16b6f673c7315028 Parents: a34bebb Author: Alan M. Carroll <[email protected]> Authored: Wed Nov 19 12:05:36 2014 -0600 Committer: Alan M. Carroll <[email protected]> Committed: Wed Nov 19 12:05:36 2014 -0600 ---------------------------------------------------------------------- proxy/hdrs/MIME.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8dda144a/proxy/hdrs/MIME.cc ---------------------------------------------------------------------- diff --git a/proxy/hdrs/MIME.cc b/proxy/hdrs/MIME.cc index 7c8b5cb..2736903 100644 --- a/proxy/hdrs/MIME.cc +++ b/proxy/hdrs/MIME.cc @@ -2432,20 +2432,21 @@ mime_scanner_get(MIMEScanner *S, // If we're already accumulating, continue to do so if we have data. mime_scanner_append(S, *raw_input_s, data_size); } + // No sharing if we've accumulated data (really, force this to make compiler shut up). + *output_shares_raw_input = 0 == S->m_line_length; // adjust out arguments. if (PARSE_CONT != zret) { if (0 != S->m_line_length) { *output_s = S->m_line; *output_e = *output_s + S->m_line_length; - *output_shares_raw_input = false; S->m_line_length = 0; } else { *output_s = *raw_input_s; *output_e = raw_input_c; - *output_shares_raw_input = true; } } + // Make sure there are no '\0' in the input scanned so far if (zret != PARSE_ERROR && memchr(*raw_input_s, '\0', raw_input_c - *raw_input_s) != NULL)
