commit | 00ed9870d98b93d8a6438e5cf9058ebbe10dab01 | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Fri Feb 13 03:02:28 2015 +0000 |
committer | Dan Albert <danalbert@google.com> | Thu Feb 12 19:08:06 2015 -0800 |
tree | 37f06a0d8fde76ac68845bd0c9251c4d437b77e6 | |
parent | 8f9e26da95273e2b6841d3030cabb940edefc4dd [diff] |
Fix error checking in get_temp_file_name(). Checking errno without first checking that the call failed means that if some other call prior to mkstemp failed with EINVAL prior to this, the assert would fire even if mkstemp succeeded. If something failed with EEXIST, it would go in to an infinite loop. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@229035 91177308-0d34-0410-b5e6-96231b3b80d8 Change-Id: I512f29f2cb4b379e9f33e9bc12c060851152647c