diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-10-19 17:39:53 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-10-19 17:53:32 -0300 |
commit | 38aa2226587a47cefefbb7dbf03a9d0568682c63 (patch) | |
tree | 6d35e493bd71668dffba6782a807982dc3850dcf | |
parent | fb34028c1e2274d668eb7d7912ada2b163898520 (diff) | |
download | rneovim-38aa2226587a47cefefbb7dbf03a9d0568682c63.tar.gz rneovim-38aa2226587a47cefefbb7dbf03a9d0568682c63.tar.bz2 rneovim-38aa2226587a47cefefbb7dbf03a9d0568682c63.zip |
rstream: Initialize 'rstream' field in RBuffer class
This field is used in a conditional jump, so this initialization is fixing a
bug.
-rw-r--r-- | src/nvim/os/rstream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/os/rstream.c b/src/nvim/os/rstream.c index 3e5a99acd1..139f7359d8 100644 --- a/src/nvim/os/rstream.c +++ b/src/nvim/os/rstream.c @@ -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; } |