diff options
-rw-r--r-- | src/nvim/msgpack_rpc/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index 00b8cd072f..25d41e7328 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -338,12 +338,12 @@ static void job_err(RStream *rstream, void *data, bool eof) { size_t count; char buf[256]; - Channel *channel = job_data(data); while ((count = rstream_pending(rstream))) { size_t read = rstream_read(rstream, buf, sizeof(buf) - 1); buf[read] = NUL; - ELOG("Channel %" PRIu64 " stderr: %s", channel->id, buf); + ELOG("Channel %" PRIu64 " stderr: %s", + ((Channel *)job_data(data))->id, buf); } } |