X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=stream.cpp;h=83257e9046d3a9cbbd29756f100bedaed069df45;hb=162161d07d8db58b69e74847e71012c775c4ecca;hp=3e0d78dd771159b3d4f7d1bd5df1e2ee728127b1;hpb=5cd46e39b4063d94f6dc559ae350beeb8406a8f9;p=cubemap diff --git a/stream.cpp b/stream.cpp index 3e0d78d..83257e9 100644 --- a/stream.cpp +++ b/stream.cpp @@ -110,6 +110,9 @@ void Stream::set_backlog_size(size_t new_size) // Create a new, empty data file. data_fd = make_tempfile(""); + if (data_fd == -1) { + exit(1); + } backlog_size = new_size; // Now cheat a bit by rewinding, and adding all the old data back.