Fix bug in fifo creation where BufOpenFifo hook was using a dead string

This commit is contained in:
Maxime Coste 2015-05-05 20:23:15 +01:00
parent 0ee95d02c4
commit 9f1b129053

View File

@ -161,7 +161,7 @@ Buffer* create_fifo_buffer(String name, int fd, bool scroll)
buffer->values()[fifo_watcher_id] = Value(std::move(watcher)); buffer->values()[fifo_watcher_id] = Value(std::move(watcher));
buffer->flags() = Buffer::Flags::Fifo | Buffer::Flags::NoUndo; buffer->flags() = Buffer::Flags::Fifo | Buffer::Flags::NoUndo;
buffer->run_hook_in_own_context("BufOpenFifo", name); buffer->run_hook_in_own_context("BufOpenFifo", buffer->name());
return buffer; return buffer;
} }