| commit | e1a7b04c5867b87674c0377e14dd7a86bfc694ac | [log] [tgz] | 
|---|---|---|
| author | Howard Hinnant <hhinnant@apple.com> | Thu Jan 12 23:37:51 2012 +0000 | 
| committer | Howard Hinnant <hhinnant@apple.com> | Thu Jan 12 23:37:51 2012 +0000 | 
| tree | 1c97888072779cf4f988a2a770a073b6b22a3df4 | |
| parent | ae8b16e047e8ff1255fb182dc4abc82522fe605e [diff] [blame] | 
Fix http://llvm.org/bugs/show_bug.cgi?id=11752 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@148069 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/fstream b/include/fstream index 4456c01..8e1b1fb 100644 --- a/include/fstream +++ b/include/fstream
@@ -549,7 +549,7 @@ { __rt = this; unique_ptr<FILE, int(*)(FILE*)> __h(__file_, fclose); - if ((__cm_ & ios_base::out) && sync()) + if (sync()) __rt = 0; if (fclose(__h.release()) == 0) __file_ = 0;