Skip to content

Commit 958ef47

Browse files
committed
When flushing CP5022x conversion filter, also flush next filter in chain
All the mbstring encoding conversion filters do this. I missed it when adding a flush function for CP5022x.
1 parent caeaa66 commit 958ef47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/mbstring/libmbfl/filters/mbfilter_cp5022x.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@ static int mbfl_filt_conv_cp5022x_wchar_flush(mbfl_convert_filter *filter)
315315
/* 2-byte (JIS X 0208 or 0212) character was truncated */
316316
CK((*filter->output_function)(filter->cache | MBFL_WCSGROUP_THROUGH, filter->data));
317317
}
318+
319+
if (filter->flush_function) {
320+
(*filter->flush_function)(filter->data);
321+
}
322+
318323
return 0;
319324
}
320325

0 commit comments

Comments
 (0)