Skip to content

Commit 68ae58d

Browse files
authored
Update CppInterOp.cpp
1 parent a600b22 commit 68ae58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3464,7 +3464,7 @@ namespace Cpp {
34643464
std::fclose),
34653465
m_FD(FD) {
34663466
#else
3467-
StreamCaptureInfo(int FD) : m_TempFile(tmpfile(), std::fclose), m_FD(FD) {
3467+
StreamCaptureInfo(int FD) : m_TempFile(file_pointer{tmpfile()}), m_FD(FD) {
34683468
#endif
34693469
if (!m_TempFile) {
34703470
perror("StreamCaptureInfo: Unable to create temp file");

0 commit comments

Comments
 (0)