update-index: fix segfault with missing --cacheinfo argument
[git/mingw.git] / t / t5100 / patch0011
blob0988713761d4a6adc1039f8f4edbe77ea58d5ea4
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