X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=stream.cpp;h=83257e9046d3a9cbbd29756f100bedaed069df45;hp=3e0d78dd771159b3d4f7d1bd5df1e2ee728127b1;hb=71fc5575037bead8b6e927a1fffd199e4fc4514b;hpb=5cd46e39b4063d94f6dc559ae350beeb8406a8f9 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.