aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-10-19 17:39:53 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-10-19 17:53:32 -0300
commit38aa2226587a47cefefbb7dbf03a9d0568682c63 (patch)
tree6d35e493bd71668dffba6782a807982dc3850dcf /src
parentfb34028c1e2274d668eb7d7912ada2b163898520 (diff)
downloadrneovim-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.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/rstream.c1
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;
}