From 6012fe9abb1f01b1b5b4ca908464804c21ff8602 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 19 Jan 2019 10:05:35 +0000 Subject: Vendor import of libc++ trunk r351319 (just before the release_80 branch point): https://llvm.org/svn/llvm-project/libcxx/trunk@351319 --- include/fstream | 1 + 1 file changed, 1 insertion(+) (limited to 'include/fstream') diff --git a/include/fstream b/include/fstream index 332b4747c1af..711e484e2dcf 100644 --- a/include/fstream +++ b/include/fstream @@ -702,6 +702,7 @@ basic_filebuf<_CharT, _Traits>::close() __file_ = 0; else __rt = 0; + setbuf(0, 0); } return __rt; } -- cgit v1.2.3