summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-08-20 05:07:16 +0200
committerRobin Gareus <robin@gareus.org>2019-08-20 05:07:16 +0200
commit2d4eb7d505d85ffff2cd25251623599583f83c41 (patch)
treeaee433891c172480f56bd48f54bf8c9614aaf73e /libs
parent3ccaaf1ea5213263c28cb20e2509cd5902a0a813 (diff)
Replace OOM segfault with abort :)
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/worker.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/worker.cc b/libs/ardour/worker.cc
index 8b9427bbbd..67fede4613 100644
--- a/libs/ardour/worker.cc
+++ b/libs/ardour/worker.cc
@@ -168,11 +168,11 @@ Worker::run()
if (buf) {
buf_size = size;
} else {
- PBD::error << "Worker: Error allocating memory"
- << endmsg;
- buf_size = 0; // TODO: This is probably fatal
+ PBD::fatal << "Worker: Error allocating memory" << endmsg;
+ abort(); /*NOTREACHED*/
}
}
+ assert (buf);
if (_requests->read((uint8_t*)buf, size) < size) {
PBD::error << "Worker: Error reading body from request ring"