mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 09:19:43 +10:00
rstream: Initialize 'rstream' field in RBuffer class
This field is used in a conditional jump, so this initialization is fixing a bug.
This commit is contained in:
@@ -47,6 +47,7 @@ RBuffer *rbuffer_new(size_t capacity)
|
||||
rv->data = xmalloc(capacity);
|
||||
rv->capacity = capacity;
|
||||
rv->rpos = rv->wpos = 0;
|
||||
rv->rstream = NULL;
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user