builtin-mailinfo.c: check error status from rewind and ftruncate
[git/spearce.git] / t / t5100 / patch0011
blob8841d3c13916a85dec9e14762eb1406735f4744e
1 ---
2  builtin-mailinfo.c  |    4 ++--
4 diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
5 index 3e5fe51..aabfe5c 100644
6 --- a/builtin-mailinfo.c
7 +++ b/builtin-mailinfo.c
8 @@ -758,8 +758,8 @@ static void handle_body(void)
9                 /* process any boundary lines */
10                 if (*content_top && is_multipart_boundary(&line)) {
11                         /* flush any leftover */
12 -                       if (line.len)
13 -                               handle_filter(&line);
14 +                       if (prev.len)
15 +                               handle_filter(&prev);
17                         if (!handle_boundary())
18                                 goto handle_body_out;
19 -- 
20 1.6.0.rc2